aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/RunStyles.cxx
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2011-06-07 11:45:17 +1000
committernyamatongwe <devnull@localhost>2011-06-07 11:45:17 +1000
commitd220ba3aa321d58d1ab1bb7b07305c825ba53e16 (patch)
tree0067909b73c831379b5306a551860ae65421a84d /src/RunStyles.cxx
parent1b3f7d04c670a821ee7ed2c60dea9e898742bf7c (diff)
downloadscintilla-mirror-d220ba3aa321d58d1ab1bb7b07305c825ba53e16.tar.gz
Fix bug with extra partition created when range filled.
Diffstat (limited to 'src/RunStyles.cxx')
-rw-r--r--src/RunStyles.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/RunStyles.cxx b/src/RunStyles.cxx
index c3414b4e8..93688b3f9 100644
--- a/src/RunStyles.cxx
+++ b/src/RunStyles.cxx
@@ -147,6 +147,8 @@ bool RunStyles::FillRange(int &position, int value, int &fillLength) {
runEnd = RunFromPosition(end);
RemoveRunIfSameAsPrevious(runEnd);
RemoveRunIfSameAsPrevious(runStart);
+ runEnd = RunFromPosition(end);
+ RemoveRunIfEmpty(runEnd);
return true;
} else {
return false;