commit cd0210ff3e70638bdfb4e06dbf16d0fc7bfecb06
parent 7098ec233cc50ff38c993e4728b12c8a615e18eb
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date: Sat, 18 Jun 2005 14:05:21 +0000
fix more minor screen update problems
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2722 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
Diffstat:
3 files changed, 11 insertions(+), 9 deletions(-)
diff --git a/ChangeLog b/ChangeLog
@@ -218,8 +218,9 @@ CVS code -
unnecessary update, and remove an unneeded clearok(FALSE).
(DLR)
do_spell()
- - If the spell-checker printed any error messages onscreen, make
- sure they're cleared off. (DLR, found by CHAO Wei-Lun)
+ - If the spell-checker printed any error messages onscreen, call
+ total_refresh() to make sure they're cleared off. (DLR, found
+ by CHAO Wei-Lun)
do_output()
- Properly allow wrapping when we insert a tab, for consistency.
(DLR)
@@ -298,11 +299,11 @@ CVS code -
consistency. (DLR)
- Rename variables def and ret to curranswer and retval to avoid
confusion. (DLR)
- - Call wrefresh(bottomwin) after getting an answer and blanking
- out the statusbar, to make sure that the blanking is done.
- This fixes a problem where the statusbar is not properly
- blanked after using the "Go To Line" prompt with the NO_HELP
- flag set. (DLR)
+ - Call wnoutrefresh(bottomwin) and reset_cursor() after getting
+ an answer and blanking out the statusbar, to make sure that
+ the blanking is done. This fixes a problem where the
+ statusbar is not properly blanked after using the "Go To Line"
+ prompt with the NO_HELP flag set. (DLR)
do_help()
- Don't treat NANO_CANCEL_KEY as NANO_EXIT_KEY anymore, for
consistency. (DLR)
diff --git a/src/nano.c b/src/nano.c
@@ -2509,7 +2509,7 @@ void do_spell(void)
/* If the spell-checker printed any error messages onscreen, make
* sure they're cleared off. */
- total_update();
+ total_refresh();
if (spell_msg != NULL)
statusbar(_("Spell checking failed: %s: %s"), spell_msg,
diff --git a/src/winio.c b/src/winio.c
@@ -2659,7 +2659,8 @@ int statusq(bool allow_tabs, const shortcut *s, const char *curranswer,
}
blank_statusbar();
- wrefresh(bottomwin);
+ wnoutrefresh(bottomwin);
+ reset_cursor();
#ifdef DEBUG
fprintf(stderr, "answer = \"%s\"\n", answer);