diff options
author | 2014-12-24 16:04:24 -0500 | |
---|---|---|
committer | 2014-12-24 16:04:24 -0500 | |
commit | 776e3578df31adcd07e73e1a89ec6525f4f149d2 (patch) | |
tree | 800262ace40a9b014b5299a5eda7e90faeeadb53 | |
parent | 8070edb05a8bfa1579adda47188303812248807a (diff) | |
download | textadept-776e3578df31adcd07e73e1a89ec6525f4f149d2.tar.gz textadept-776e3578df31adcd07e73e1a89ec6525f4f149d2.zip |
Patched Scintilla to fix curses margin intersection; src/scintilla.patch
Clicking on the first character in a line caused Scintilla to think the line's
margin was clicked, incorrectly selecting the entire line.
-rw-r--r-- | src/scintilla.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/scintilla.patch b/src/scintilla.patch index 493fd538..f2d7935d 100644 --- a/src/scintilla.patch +++ b/src/scintilla.patch @@ -36,3 +36,15 @@ diff -r 326449de45d0 src/ScintillaBase.cxx rc.top += offset; rc.bottom += offset; } +diff -r a797ff255bdf src/Editor.cxx +--- a/src/Editor.cxx Sat Nov 29 12:42:58 2014 +1100 ++++ b/src/Editor.cxx Wed Dec 17 09:54:10 2014 -0500 +@@ -3998,7 +3998,7 @@ + // Really means: "Point in a margin" + if (vs.fixedColumnWidth > 0) { // There is a margin + PRectangle rcSelMargin = GetClientRectangle(); +- rcSelMargin.right = static_cast<XYPOSITION>(vs.textStart - vs.leftMarginWidth); ++ rcSelMargin.right = static_cast<XYPOSITION>(vs.textStart - (vs.leftMarginWidth > 0 ? vs.leftMarginWidth : 1)); + rcSelMargin.left = static_cast<XYPOSITION>(vs.textStart - vs.fixedColumnWidth); + return rcSelMargin.Contains(pt); + } else { |