summaryrefslogtreecommitdiff
path: root/src/selection.cc
AgeCommit message (Collapse)Author
2012-11-30Selection: refactoring, move CaptureList to SelectionMaxime Coste
2012-11-12make Buffer::{add,remove}_change_listener const and the listener list mutableMaxime Coste
2012-10-08selections should always point to an utf8 character sequence start byteMaxime Coste
2012-09-05fix Selection::merge_withMaxime Coste
2012-08-15avoid keeping end of lines selected in Editor::eraseMaxime Coste
2012-07-16Go back to a generic BufferChangeListener interface for selection updateMaxime Coste
2012-04-04remove ModificationListener and use a list of iterators to update insteadMaxime Coste
This permits to fix a bug in BufferIterator::upgrade, replaced by BufferIterator::on_insert and BufferIterator::on_erase. ModificationListener was only used to updating iterators anyway.
2012-03-30Store buffer content in a list of linesMaxime Coste
Instead of a big std::string, buffer now store it's content in a list of lines. In order to achieve O(log(n)) random access, lines contains both their content and their offset since the start of the file, making binary search usable. BufferIterator now have a LineAndColumn coordinate into the buffer instead of an offset so that access is still O(1).
2012-02-22Selection: handle last buffer character deleted caseMaxime Coste
2012-02-09Merge captures into registers, implements register insertionMaxime Coste
2012-01-31extract an Editor class from Window and refactorMaxime Coste