commit a620e683e7e5a46aff92fa3b68dbbdf6f4622ab4
parent 100bc30d632c9d5d20bcabe2817634dbf96cc20d
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date: Sat, 27 May 2006 18:19:03 +0000
don't blank the statusbar after getting verbatim input if constant
cursor position display is on
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3587 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
Diffstat:
1 file changed, 9 insertions(+), 8 deletions(-)
diff --git a/src/text.c b/src/text.c
@@ -2428,17 +2428,18 @@ void do_verbatim_input(void)
* inserted verbatim. */
statusbar(_("Verbatim Input"));
- /* If constant cursor position display is on, make sure the current
- * cursor position will be properly displayed on the statusbar. */
- if (ISSET(CONST_UPDATE))
- do_cursorpos(TRUE);
-
/* Read in all the verbatim characters. */
kbinput = get_verbatim_kbinput(edit, &kbinput_len);
- /* Blank the statusbar. */
- blank_statusbar();
- wnoutrefresh(bottomwin);
+ /* If constant cursor position display is on, make sure the current
+ * cursor position will be properly displayed on the statusbar.
+ * Otherwise, blank the statusbar. */
+ if (ISSET(CONST_UPDATE))
+ do_cursorpos(TRUE);
+ else {
+ blank_statusbar();
+ wnoutrefresh(bottomwin);
+ }
/* Display all the verbatim characters at once, not filtering out
* control characters. */