aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormitchell <unknown>2020-04-02 17:49:01 -0400
committermitchell <unknown>2020-04-02 17:49:01 -0400
commitb467fbec5c0b13bb71444191b250b50677238361 (patch)
tree8f0f953436e902f9a6bec0b494f0ae64e7d1e0b6
parent90cbc76c97e7be7344d2e71ef76e221ba4108387 (diff)
downloadscintilla-mirror-b467fbec5c0b13bb71444191b250b50677238361.tar.gz
Fixed curses overlapping window drawing bug in Windows.
A view could not draw autocompletion lists and calltips over itself, but it could draw over other views just fine.
-rw-r--r--curses/ScintillaCurses.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/curses/ScintillaCurses.cxx b/curses/ScintillaCurses.cxx
index 27df0912a..13b6a4117 100644
--- a/curses/ScintillaCurses.cxx
+++ b/curses/ScintillaCurses.cxx
@@ -1223,13 +1223,14 @@ public:
Paint(sur, rcPaint);
SetVerticalScrollPos(), SetHorizontalScrollPos();
wnoutrefresh(w);
-#if PDCURSES
- touchwin(w); // pdcurses sometimes has problems drawing overlapping windows
-#endif
if (ac.Active())
ac.lb->Select(ac.lb->GetSelection()); // redraw
else if (ct.inCallTipMode)
CreateCallTipWindow(PRectangle(0, 0, 0, 0)); // redraw
+#if PDCURSES
+ else
+ touchwin(w); // pdcurses has problems after drawing overlapping windows
+#endif
if (hasFocus) {
// Update cursor position, even if it's not visible, as the container may
// have a use for it.