aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2015-01-16 09:48:30 +1100
committerNeil <nyamatongwe@gmail.com>2015-01-16 09:48:30 +1100
commite8b4d6d131055b045d22c14e4cb3ec1698ce0941 (patch)
tree3d014f967242826dfd909fa0ed2defcbcc5d264a /src
parent19f38f82e0a959b7e7235547b9bcecc16d89b3db (diff)
downloadscintilla-mirror-e8b4d6d131055b045d22c14e4cb3ec1698ce0941.tar.gz
When the mouse is on the line between margin and text changed to treat as within
text. Helps on PLAT_CURSES.
Diffstat (limited to 'src')
-rw-r--r--src/Editor.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index 4902dbdc8..8cf77ead1 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -4008,7 +4008,7 @@ bool Editor::PointInSelMargin(Point pt) const {
PRectangle rcSelMargin = GetClientRectangle();
rcSelMargin.right = static_cast<XYPOSITION>(vs.textStart - vs.leftMarginWidth);
rcSelMargin.left = static_cast<XYPOSITION>(vs.textStart - vs.fixedColumnWidth);
- return rcSelMargin.Contains(pt);
+ return rcSelMargin.ContainsWholePixel(pt);
} else {
return false;
}