Commit 73bf89fa authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

make do_yesno() refresh the edit window as well as the statusbar before

getting input, as statusq() does


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2801 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
No related merge requests found
Showing with 5 additions and 5 deletions
+5 -5
...@@ -379,6 +379,8 @@ CVS code - ...@@ -379,6 +379,8 @@ CVS code -
- Get input from bottomwin instead of edit, so that the cursor - Get input from bottomwin instead of edit, so that the cursor
isn't erroneously put in the edit window while we wait for an isn't erroneously put in the edit window while we wait for an
answer. (DLR) answer. (DLR)
- Call wnoutrefresh(edit) to make sure that the edit window is
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 call clearok(TRUE) and wrefresh() on curscr, which
updates the entire screen in fewer function calls without updates the entire screen in fewer function calls without
...@@ -392,8 +394,6 @@ CVS code - ...@@ -392,8 +394,6 @@ CVS code -
have a zero-length regex. (DLR) have a zero-length regex. (DLR)
- Rename variable highlight_flag to highlight, for consistency. - Rename variable highlight_flag to highlight, for consistency.
(DLR) (DLR)
- Call wnoutrefresh(edit) to make sure that the highlight is
drawn properly. (DLR)
do_credits() do_credits()
- Save the keystroke that breaks us out of the credits (if any) - Save the keystroke that breaks us out of the credits (if any)
and put it back so that it isn't lost. This is especially and put it back so that it isn't lost. This is especially
......
...@@ -3686,6 +3686,9 @@ int do_yesno(bool all, const char *msg) ...@@ -3686,6 +3686,9 @@ int do_yesno(bool all, const char *msg)
wattroff(bottomwin, A_REVERSE); wattroff(bottomwin, A_REVERSE);
/* Refresh the edit window and the statusbar before getting
* input. */
wnoutrefresh(edit);
wrefresh(bottomwin); wrefresh(bottomwin);
do { do {
...@@ -4013,9 +4016,6 @@ void do_replace_highlight(bool highlight, const char *word) ...@@ -4013,9 +4016,6 @@ void do_replace_highlight(bool highlight, const char *word)
if (highlight) if (highlight)
wattroff(edit, A_REVERSE); wattroff(edit, A_REVERSE);
/* Refresh the edit window. */
wnoutrefresh(edit);
} }
#ifndef NDEBUG #ifndef NDEBUG
......
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