aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/RunStyles.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2011-06-07 11:45:17 +1000
committernyamatongwe <unknown>2011-06-07 11:45:17 +1000
commit5dc8096d70e74e05120806386b0a08387d200045 (patch)
tree4506051635d19d57936731a8317e1d781c5764fc /src/RunStyles.cxx
parent43c5ebb9044c5f279f732d11b922c369bd7d373b (diff)
downloadscintilla-mirror-5dc8096d70e74e05120806386b0a08387d200045.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;