diff options
| author | nyamatongwe <devnull@localhost> | 2012-07-21 11:14:42 +1000 |
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2012-07-21 11:14:42 +1000 |
| commit | 38dc2df4119595f2a553cec3f9b51adaa160c973 (patch) | |
| tree | 7adfc29d2eec220761ae5a583c814b57d18b234d /src | |
| parent | 6f05ff5985c3f96c08d968f90d1e786722545898 (diff) | |
| download | scintilla-mirror-38dc2df4119595f2a553cec3f9b51adaa160c973.tar.gz | |
Avoid problems when calltip highlight range is negative. Bug #3545938.
Diffstat (limited to 'src')
| -rw-r--r-- | src/CallTip.cxx | 2 |
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(); } |
