From 748187ba9771beb6947ed9a5130ad87add31da90 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Fri, 27 Jul 2007 01:52:48 +0000 Subject: Changed lineStates to a SplitVector so that it supports insert and delete so inserting and deleting lines does not cause a really large number of changed values under most circumstances leading to fewer notifications. SVector is no longer used. --- src/CellBuffer.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/CellBuffer.h') diff --git a/src/CellBuffer.h b/src/CellBuffer.h index c51eab78d..4f654a8fd 100644 --- a/src/CellBuffer.h +++ b/src/CellBuffer.h @@ -160,7 +160,7 @@ private: LineVector lv; - SVector lineStates; + SplitVector lineStates; public: @@ -177,6 +177,8 @@ public: int Lines() const; int LineStart(int line) const; int LineFromPosition(int pos) { return lv.LineFromPosition(pos); } + void InsertLine(int line, int position); + void RemoveLine(int line); const char *InsertString(int position, const char *s, int insertLength, bool &startSequence); /// Setting styles for positions outside the range of the buffer is safe and has no effect. -- cgit v1.2.3