From b467fbec5c0b13bb71444191b250b50677238361 Mon Sep 17 00:00:00 2001 From: mitchell Date: Thu, 2 Apr 2020 17:49:01 -0400 Subject: 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. --- curses/ScintillaCurses.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'curses') 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. -- cgit v1.2.3