summaryrefslogtreecommitdiff
path: root/src/command_manager.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2012-03-30 11:37:18 +0000
committerMaxime Coste <frrrwww@gmail.com>2012-03-30 11:37:18 +0000
commit0ba7c7286dd97d7d3d7c03bccf3ea98389f0e273 (patch)
treedaf4ac18740960e1e98eb1260776c2c35c3d0ece /src/command_manager.cc
parentc336bf1365f54e401e1d1c2b36ed301cbe5a7bc0 (diff)
Store buffer content in a list of lines
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).
Diffstat (limited to 'src/command_manager.cc')
0 files changed, 0 insertions, 0 deletions