From 3ce320809ecfb21e5a004171df6c8262a6001502 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Sun, 30 Nov 2014 23:29:09 -0500 Subject: 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. --- src/scintilla.patch | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/scintilla.patch') 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(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; + } -- cgit v1.2.3