diff options
author | nyamatongwe <devnull@localhost> | 2010-02-19 22:54:51 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2010-02-19 22:54:51 +0000 |
commit | 757f95abba49be35796c313992eaa1c583424421 (patch) | |
tree | e42f0fc1ce0e9fa00c6410287b71dd566e5df3a0 /src/Editor.cxx | |
parent | 884b7d45cff0ade2b11f52cebea06817a2357cf2 (diff) | |
download | scintilla-mirror-757f95abba49be35796c313992eaa1c583424421.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.cxx | 7 |
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 } } |