diff options
author | nyamatongwe <devnull@localhost> | 2007-01-01 23:34:58 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2007-01-01 23:34:58 +0000 |
commit | 30a42acd9f04fea654c99f6c18ddbb26e5deb4b2 (patch) | |
tree | 7ec27fd7c4ca3664e5ead3fb122a5aa87c713f41 /src/Document.cxx | |
parent | ebf5266f9fdadabb7c3545fd08e4520004cfb100 (diff) | |
download | scintilla-mirror-30a42acd9f04fea654c99f6c18ddbb26e5deb4b2.tar.gz |
Major change to CellBuffer class with addition of Partitioning class and SplitVector
template. Inserting and deleting lines are made more efficient by lessening the
amount of per line information copied.
Marker data is only allocated for each line if markers are added.
Diffstat (limited to 'src/Document.cxx')
-rw-r--r-- | src/Document.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Document.cxx b/src/Document.cxx index e530b0423..2e21cfe7b 100644 --- a/src/Document.cxx +++ b/src/Document.cxx @@ -14,6 +14,8 @@ #include "Scintilla.h" #include "SVector.h" +#include "SplitVector.h" +#include "Partitioning.h" #include "CellBuffer.h" #include "CharClassify.h" #include "Document.h" @@ -858,7 +860,7 @@ int Document::ExtendWordSelect(int pos, int delta, bool onlyWordCharacters) { while (pos > 0 && (WordCharClass(cb.CharAt(pos - 1)) == ccStart)) pos--; } else { - if (!onlyWordCharacters) + if (!onlyWordCharacters && pos < Length()) ccStart = WordCharClass(cb.CharAt(pos)); while (pos < (Length()) && (WordCharClass(cb.CharAt(pos)) == ccStart)) pos++; |