aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2010-02-19 22:54:51 +0000
committernyamatongwe <unknown>2010-02-19 22:54:51 +0000
commit894ca126a2f73926df1f1eba0a5e875614e5ca43 (patch)
treee42f0fc1ce0e9fa00c6410287b71dd566e5df3a0 /src/Editor.cxx
parent66c683a69a906bbca6e8fc812d07cc01091006d2 (diff)
downloadscintilla-mirror-894ca126a2f73926df1f1eba0a5e875614e5ca43.tar.gz
Fix for bug #2951353 HotSpotRange clearing when mouse moves out of window.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r--src/Editor.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index 876be0004..f9f02788a 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -5621,7 +5621,11 @@ void Editor::DwellEnd(bool mouseMoved) {
}
}
-static bool AllowVirtualSpace(int virtualSpaceOptions, bool rectangular) {
+void Editor::MouseLeave() {
+ SetHotSpotRange(NULL);
+}
+
+static bool AllowVirtualSpace(int virtualSpaceOptions, bool rectangular) {
return ((virtualSpaceOptions & SCVS_USERACCESSIBLE) != 0)
|| (rectangular && ((virtualSpaceOptions & SCVS_RECTANGULARSELECTION) != 0));
}
@@ -5897,6 +5901,7 @@ void Editor::ButtonMove(Point pt) {
if (vs.fixedColumnWidth > 0) { // There is a margin
if (PointInSelMargin(pt)) {
DisplayCursor(Window::cursorReverseArrow);
+ SetHotSpotRange(NULL);
return; // No need to test for selection
}
}