Commit 7431fe5e authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

work around slang brain damage in total_update()

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2724 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
No related merge requests found
Showing with 11 additions and 0 deletions
+11 -0
......@@ -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)
......
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment