aboutsummaryrefslogtreecommitdiff
path: root/src/scintilla.patch
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2014-11-30 23:29:09 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2014-11-30 23:29:09 -0500
commit3ce320809ecfb21e5a004171df6c8262a6001502 (patch)
treec14b74d5e343f4e21c0509fee7af60d5deb1237a /src/scintilla.patch
parentcff9081290aa3ab0275c115b83e57f08544cf14f (diff)
downloadtextadept-3ce320809ecfb21e5a004171df6c8262a6001502.tar.gz
textadept-3ce320809ecfb21e5a004171df6c8262a6001502.zip
Patch Scintilla to sometimes prevent call tip repositioning; src/scintilla.patch
When the call tip is smaller than the window (such as the command entry), keep existing position in order to keep the call tip from appearing in front of buffer text.
Diffstat (limited to 'src/scintilla.patch')
-rw-r--r--src/scintilla.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/scintilla.patch b/src/scintilla.patch
index bcd054b1..4818d3d4 100644
--- a/src/scintilla.patch
+++ b/src/scintilla.patch
@@ -296,3 +296,21 @@ diff -r 326449de45d0 src/LineMarker.h
}
return *this;
}
+diff -r 326449de45d0 src/ScintillaBase.cxx
+--- a/src/ScintillaBase.cxx Thu Sep 25 09:48:50 2014 +1000
++++ b/src/ScintillaBase.cxx Sun Nov 30 23:25:36 2014 -0500
+@@ -448,12 +448,12 @@
+ PRectangle rcClient = GetClientRectangle();
+ int offset = vs.lineHeight + static_cast<int>(rc.Height());
+ // adjust so it displays above the text.
+- if (rc.bottom > rcClient.bottom) {
++ if (rc.bottom > rcClient.bottom && rc.Height() < rcClient.Height()) {
+ rc.top -= offset;
+ rc.bottom -= offset;
+ }
+ // adjust so it displays below the text.
+- if (rc.top < rcClient.top) {
++ if (rc.top < rcClient.top && rc.Height() < rcClient.Height()) {
+ rc.top += offset;
+ rc.bottom += offset;
+ }