aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <unknown>2010-12-30 09:42:05 +1100
committernyamatongwe <unknown>2010-12-30 09:42:05 +1100
commitd907c1fc00b233075e2751256296b004ef79e5a9 (patch)
treed099d2bbc5119a68610f5b65dda456249d533b73 /src
parent0b5eacad6b05a0ae233274431e356e4bf09ced80 (diff)
downloadscintilla-mirror-d907c1fc00b233075e2751256296b004ef79e5a9.tar.gz
Avoid redraws when setting an indicator over positions where it is already set.
From Tino Weinkauf.
Diffstat (limited to 'src')
-rw-r--r--src/RunStyles.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/RunStyles.cxx b/src/RunStyles.cxx
index ae32c7380..460d5d244 100644
--- a/src/RunStyles.cxx
+++ b/src/RunStyles.cxx
@@ -147,8 +147,10 @@ bool RunStyles::FillRange(int &position, int value, int &fillLength) {
runEnd = RunFromPosition(end);
RemoveRunIfSameAsPrevious(runEnd);
RemoveRunIfSameAsPrevious(runStart);
+ return true;
+ } else {
+ return false;
}
- return true;
}
void RunStyles::SetValueAt(int position, int value) {