aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <unknown>2012-07-21 11:14:42 +1000
committernyamatongwe <unknown>2012-07-21 11:14:42 +1000
commitb8dbea549073db7d6fe9c3c5c738ee894ef768cc (patch)
treea5ff34533ff3a8987df0041c956d1a14ec483f62 /src
parent5ca40a44b93a3c2ebe35f115661bb867f5897eba (diff)
downloadscintilla-mirror-b8dbea549073db7d6fe9c3c5c738ee894ef768cc.tar.gz
Avoid problems when calltip highlight range is negative. Bug #3545938.
Diffstat (limited to 'src')
-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();
}