summaryrefslogtreecommitdiff
path: root/src/buffer.hh
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2012-02-22 21:54:25 +0000
committerMaxime Coste <frrrwww@gmail.com>2012-02-22 21:54:25 +0000
commita386315bde576cc77c22ca7677de51f86f97755c (patch)
treeb6c3c3cf3c76fcf6b593cb2a255b8cc0ebdb0544 /src/buffer.hh
parent030450838a532ad052b54449222f08f80ca78604 (diff)
Buffer: optimize line updating when applying a modification
Diffstat (limited to 'src/buffer.hh')
-rw-r--r--src/buffer.hh1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/buffer.hh b/src/buffer.hh
index 7b010c9b..483485fd 100644
--- a/src/buffer.hh
+++ b/src/buffer.hh
@@ -177,6 +177,7 @@ private:
void compute_lines();
BufferPos line_at(const BufferIterator& iterator) const;
BufferSize line_length(BufferPos line) const;
+ void update_lines(const Modification& modification);
BufferString m_content;