diff options
| author | nyamatongwe <devnull@localhost> | 2007-07-27 01:52:48 +0000 |
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2007-07-27 01:52:48 +0000 |
| commit | 748187ba9771beb6947ed9a5130ad87add31da90 (patch) | |
| tree | 6c226067ef20848c5c18189a68be8a75c20cd1c1 /src/CellBuffer.h | |
| parent | 48807a25eb56dcec00d3b8e25bce49778aaa08d5 (diff) | |
| download | scintilla-mirror-748187ba9771beb6947ed9a5130ad87add31da90.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.h | 4 |
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. |
