fix more minor screen update problems

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2722 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
master
David Lawrence Ramsey 2005-06-18 14:05:21 +00:00
parent 7098ec233c
commit cd0210ff3e
3 changed files with 11 additions and 9 deletions

View File

@ -218,8 +218,9 @@ CVS code -
unnecessary update, and remove an unneeded clearok(FALSE). unnecessary update, and remove an unneeded clearok(FALSE).
(DLR) (DLR)
do_spell() do_spell()
- If the spell-checker printed any error messages onscreen, make - If the spell-checker printed any error messages onscreen, call
sure they're cleared off. (DLR, found by CHAO Wei-Lun) total_refresh() to make sure they're cleared off. (DLR, found
by CHAO Wei-Lun)
do_output() do_output()
- Properly allow wrapping when we insert a tab, for consistency. - Properly allow wrapping when we insert a tab, for consistency.
(DLR) (DLR)
@ -298,11 +299,11 @@ CVS code -
consistency. (DLR) consistency. (DLR)
- Rename variables def and ret to curranswer and retval to avoid - Rename variables def and ret to curranswer and retval to avoid
confusion. (DLR) confusion. (DLR)
- Call wrefresh(bottomwin) after getting an answer and blanking - Call wnoutrefresh(bottomwin) and reset_cursor() after getting
out the statusbar, to make sure that the blanking is done. an answer and blanking out the statusbar, to make sure that
This fixes a problem where the statusbar is not properly the blanking is done. This fixes a problem where the
blanked after using the "Go To Line" prompt with the NO_HELP statusbar is not properly blanked after using the "Go To Line"
flag set. (DLR) prompt with the NO_HELP flag set. (DLR)
do_help() do_help()
- Don't treat NANO_CANCEL_KEY as NANO_EXIT_KEY anymore, for - Don't treat NANO_CANCEL_KEY as NANO_EXIT_KEY anymore, for
consistency. (DLR) consistency. (DLR)

View File

@ -2509,7 +2509,7 @@ void do_spell(void)
/* If the spell-checker printed any error messages onscreen, make /* If the spell-checker printed any error messages onscreen, make
* sure they're cleared off. */ * sure they're cleared off. */
total_update(); total_refresh();
if (spell_msg != NULL) if (spell_msg != NULL)
statusbar(_("Spell checking failed: %s: %s"), spell_msg, statusbar(_("Spell checking failed: %s: %s"), spell_msg,

View File

@ -2659,7 +2659,8 @@ int statusq(bool allow_tabs, const shortcut *s, const char *curranswer,
} }
blank_statusbar(); blank_statusbar();
wrefresh(bottomwin); wnoutrefresh(bottomwin);
reset_cursor();
#ifdef DEBUG #ifdef DEBUG
fprintf(stderr, "answer = \"%s\"\n", answer); fprintf(stderr, "answer = \"%s\"\n", answer);