aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2016-05-03 11:56:15 +1000
committerNeil <nyamatongwe@gmail.com>2016-05-03 11:56:15 +1000
commitb11991abf6f1c8f5dbe864c6c8c980b73acf9a79 (patch)
treea0aec4a539397d59f349ad78d1d15abe7d014445 /win32
parente9304f48ef17e8200f8705e886002a6957005430 (diff)
downloadscintilla-mirror-b11991abf6f1c8f5dbe864c6c8c980b73acf9a79.tar.gz
Fix off-by-one error that allowed resizing autocompletion from bottom when it
was located above the caret.
Diffstat (limited to 'win32')
-rw-r--r--win32/PlatWin.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx
index 53b101e32..26b7adb3f 100644
--- a/win32/PlatWin.cxx
+++ b/win32/PlatWin.cxx
@@ -2618,7 +2618,7 @@ LRESULT ListBoxX::NcHitTest(WPARAM wParam, LPARAM lParam) const {
case HTBOTTOMRIGHT: {
PRectangle rc = const_cast<ListBoxX*>(this)->GetPosition();
// Valid only if caret above list
- if (rc.bottom < location.y)
+ if (rc.bottom <= location.y)
hit = HTERROR;
}
break;