Commit 5cbe08fc authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

remove unneeded clearok(TRUE) from total_redraw()

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2802 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
No related merge requests found
Showing with 5 additions and 10 deletions
+5 -10
...@@ -382,13 +382,11 @@ CVS code - ...@@ -382,13 +382,11 @@ CVS code -
- Call wnoutrefresh(edit) to make sure that the edit window is - Call wnoutrefresh(edit) to make sure that the edit window is
refreshed before we get input, as statusq() does. (DLR) refreshed before we get input, as statusq() does. (DLR)
total_redraw() total_redraw()
- Simplify to call clearok(TRUE) and wrefresh() on curscr, which - Simplify to just call wrefresh() on curscr, which updates the
updates the entire screen in fewer function calls without entire screen in one function call without moving the cursor
moving the cursor from the window it's currently in. (DLR) from the window it's currently in. (DLR)
- When using slang, use SLsmg_touch_screen() and SLsmg_refresh() - When using slang, use SLsmg_touch_screen() and SLsmg_refresh()
to update the screen, as slang doesn't define curscr, and even to update the screen, as slang doesn't define curscr. (DLR)
if it did, the curses method will leave some windows cleared
without properly updating them. (DLR)
do_replace_highlight() do_replace_highlight()
- Use waddch() instead of waddstr() to display a space when we - Use waddch() instead of waddstr() to display a space when we
have a zero-length regex. (DLR) have a zero-length regex. (DLR)
......
...@@ -3746,13 +3746,10 @@ void total_redraw(void) ...@@ -3746,13 +3746,10 @@ void total_redraw(void)
{ {
#ifdef USE_SLANG #ifdef USE_SLANG
/* Slang curses emulation brain damage, part 3: Slang doesn't define /* Slang curses emulation brain damage, part 3: Slang doesn't define
* curscr, and even if it did, if we just do what curses does here, * curscr. */
* it'll leave some windows cleared without updating them
* properly. */
SLsmg_touch_screen(); SLsmg_touch_screen();
SLsmg_refresh(); SLsmg_refresh();
#else #else
clearok(curscr, TRUE);
wrefresh(curscr); wrefresh(curscr);
#endif #endif
} }
......
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