teditor
1.8.0@@fee5e94
Terminal based editor written in C++
|
Functions | |
void | teditor::Buffer::applyInsertOp (OpData &op, bool pushToStack=true) |
Insert characters into the buffer. More... | |
void | teditor::Buffer::applyDeleteOp (OpData &op) |
Delete characters/regions from the buffer. More... | |
void | teditor::Buffer::addLines (const RemovedLines &rlines) |
void | teditor::Buffer::removeLines (const RemovedLines &rlines) |
void | teditor::Buffer::pushNewOp (OpData &op) |
void | teditor::Buffer::clearStack (OpStack &st) |
|
protected |
add the previously removed lines back into the buffer
|
protected |
Delete characters/regions from the buffer.
op | the info on what, how and where to delete from |
|
protected |
Insert characters into the buffer.
op | the info on what, how and where to insert |
pushToStack | whether to push this op into the 'undoStack' |
|
protected |
clear the input stack (esp useful while clearing redo stack)
|
protected |
pushing a new op onto the undo stack. It has the side-effect of clearing the redo stack so far accumulated!
|
protected |
remove the lines as part of the redo operation on keepRemoveLines