diff --git a/ChangeLog b/ChangeLog index 0008743f65771bb0dd8ba0be276e9fbb175f85dd..99625c9c1582cae13134c5f144355efee9192da0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -315,6 +315,9 @@ CVS code - total_update() - Simplify to call clearok(TRUE) and wrefresh() on edit, which updates the entire screen in fewer function calls. (DLR) + - When using slang, use SLsmg_touch_screen() and SLsmg_refresh() + to update the screen, as the curses method will leave some + windows cleared without properly updating them. (DLR) do_replace_highlight() - Use waddch() instead of waddstr() to display a space when we have a zero-length regex. (DLR) diff --git a/src/winio.c b/src/winio.c index bb35635522b478e8efe056b081ce0b0ad5d6ec3a..abbb7d72998319c02b878df098e7d3ff3fd090e5 100644 --- a/src/winio.c +++ b/src/winio.c @@ -3707,8 +3707,16 @@ int do_yesno(bool all, const char *msg) void total_update(void) { +#ifdef USE_SLANG + /* Slang curses emulation brain damage, part 3: If we just do what + * curses does here, it'll leave some windows cleared without + * updating them properly. */ + SLsmg_touch_screen(); + SLsmg_refresh(); +#else clearok(edit, TRUE); wrefresh(edit); +#endif } void total_refresh(void)