aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2012-07-21 11:14:42 +1000
committernyamatongwe <devnull@localhost>2012-07-21 11:14:42 +1000
commit38dc2df4119595f2a553cec3f9b51adaa160c973 (patch)
tree7adfc29d2eec220761ae5a583c814b57d18b234d
parent6f05ff5985c3f96c08d968f90d1e786722545898 (diff)
downloadscintilla-mirror-38dc2df4119595f2a553cec3f9b51adaa160c973.tar.gz
Avoid problems when calltip highlight range is negative. Bug #3545938.
-rw-r--r--src/CallTip.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/CallTip.cxx b/src/CallTip.cxx
index d93d80411..9f17e592a 100644
--- a/src/CallTip.cxx
+++ b/src/CallTip.cxx
@@ -307,7 +307,7 @@ void CallTip::SetHighlight(int start, int end) {
// Avoid flashing by checking something has really changed
if ((start != startHighlight) || (end != endHighlight)) {
startHighlight = start;
- endHighlight = end;
+ endHighlight = (end > start) ? end : start;
if (wCallTip.Created()) {
wCallTip.InvalidateAll();
}