aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/CellBuffer.h
diff options
context:
space:
mode:
authornyamatongwe <unknown>2007-07-27 01:52:48 +0000
committernyamatongwe <unknown>2007-07-27 01:52:48 +0000
commitf76d4f14632acb5eb5ff671d97654d4032cbef7e (patch)
tree6c226067ef20848c5c18189a68be8a75c20cd1c1 /src/CellBuffer.h
parent50c550fbaa760461e3262ceaa2e0ab183f94ba21 (diff)
downloadscintilla-mirror-f76d4f14632acb5eb5ff671d97654d4032cbef7e.tar.gz
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.
Diffstat (limited to 'src/CellBuffer.h')
-rw-r--r--src/CellBuffer.h4
1 files changed, 3 insertions, 1 deletions
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<int> 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.