aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2012-09-12 13:44:09 +1000
committernyamatongwe <devnull@localhost>2012-09-12 13:44:09 +1000
commit75bed4f0a73a0ef3a0d69026f21bc280b2232513 (patch)
tree6a9d3cfe610f0f6c16fb0d47e406bdff5625a340 /src
parent580fe992b298ebe0dda18b1d286b0a06bc7d5e3b (diff)
downloadscintilla-mirror-75bed4f0a73a0ef3a0d69026f21bc280b2232513.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')
-rw-r--r--src/RunStyles.cxx1
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);