diff options
author | nyamatongwe <unknown> | 2012-09-12 13:44:09 +1000 |
---|---|---|
committer | nyamatongwe <unknown> | 2012-09-12 13:44:09 +1000 |
commit | 103c297abc07dd7071cdba1abff97bef1b36cc9d (patch) | |
tree | 43710cb9de38ecde7ffe2f6db14f55fa0a59f378 /src/RunStyles.cxx | |
parent | 50fd584ed6c1a30769f9aa78a73a20c6b1ce46a2 (diff) | |
download | scintilla-mirror-103c297abc07dd7071cdba1abff97bef1b36cc9d.tar.gz |
Fix bug where removing all characters from indicator at end of document did
not remove that run causing iteration over the indicator to hang.
Diffstat (limited to 'src/RunStyles.cxx')
-rw-r--r-- | src/RunStyles.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/RunStyles.cxx b/src/RunStyles.cxx index 643d2fb2d..9c4e90a66 100644 --- a/src/RunStyles.cxx +++ b/src/RunStyles.cxx @@ -205,6 +205,7 @@ void RunStyles::DeleteRange(int position, int deleteLength) { if (runStart == runEnd) { // Deleting from inside one run starts->InsertText(runStart, -deleteLength); + RemoveRunIfEmpty(runStart); } else { runStart = SplitRun(position); runEnd = SplitRun(end); |