diff options
author | nyamatongwe <unknown> | 2011-08-07 10:20:26 +1000 |
---|---|---|
committer | nyamatongwe <unknown> | 2011-08-07 10:20:26 +1000 |
commit | 89ad0c63a47d193cb81967ad7e98789655a36d68 (patch) | |
tree | 398306f33a476a8b3c849722500230060336e5be | |
parent | 0d8b08ab6fc0269adb6f31f73b45c67c7c88424d (diff) | |
download | scintilla-mirror-89ad0c63a47d193cb81967ad7e98789655a36d68.tar.gz |
Do not extend decorations when appending to end of document. Bug #3378718.
-rw-r--r-- | src/Decoration.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Decoration.cxx b/src/Decoration.cxx index 90bde57f2..24632d7c1 100644 --- a/src/Decoration.cxx +++ b/src/Decoration.cxx @@ -126,9 +126,13 @@ bool DecorationList::FillRange(int &position, int value, int &fillLength) { } void DecorationList::InsertSpace(int position, int insertLength) { + const bool atEnd = position == lengthDocument; lengthDocument += insertLength; for (Decoration *deco=root; deco; deco = deco->next) { deco->rs.InsertSpace(position, insertLength); + if (atEnd) { + deco->rs.FillRange(position, 0, insertLength); + } } } |