diff options
| author | nyamatongwe <devnull@localhost> | 2007-07-25 09:58:17 +0000 |
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2007-07-25 09:58:17 +0000 |
| commit | 63866c4a3967fd869f87ed699f94ee17531e8881 (patch) | |
| tree | 33ce9d88f5bddd18fa01537a9ec0c45f12701357 /src/RunStyles.cxx | |
| parent | aaa03c79d3f42fb8bb603bce476af6838be02a4e (diff) | |
| download | scintilla-mirror-63866c4a3967fd869f87ed699f94ee17531e8881.tar.gz | |
Changed ContractionState data structure to be more efficient by not only
modifying data near an insertion or deletion when there is good locality of
modification.
Diffstat (limited to 'src/RunStyles.cxx')
| -rw-r--r-- | src/RunStyles.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/RunStyles.cxx b/src/RunStyles.cxx index 13d48244b..dfff75412 100644 --- a/src/RunStyles.cxx +++ b/src/RunStyles.cxx @@ -151,6 +151,11 @@ bool RunStyles::FillRange(int &position, int value, int &fillLength) { return true; } +void RunStyles::SetValueAt(int position, int value) { + int len = 1; + FillRange(position, value, len); +} + void RunStyles::InsertSpace(int position, int insertLength) { int runStart = RunFromPosition(position); if (starts->PositionFromPartition(runStart) == position) { |
