Commit 59187b80 authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

Normalizing the whitespace after the recent changes in logic.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5229 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
No related merge requests found
Showing with 45 additions and 40 deletions
+45 -40
2015-05-28 Benno Schulenberg <bensberg@justemail.net>
* src/help.c (do_help), src/prompt.c (do_yesno_prompt): Normalize
the whitespace after the recent changes in logic.
2015-05-28 Mahyar Abbaspour <mahyar.abaspour@gmail.com> 2015-05-28 Mahyar Abbaspour <mahyar.abaspour@gmail.com>
* src/nano.c (handle_sigwinch, regenerate_screen), src/global.c, * src/nano.c (handle_sigwinch, regenerate_screen), src/global.c,
src/prompt.c (do_statusbar_input, get_prompt_string, do_yesno_prompt), src/prompt.c (do_statusbar_input, get_prompt_string, do_yesno_prompt),
......
...@@ -83,6 +83,7 @@ void do_help(void (*refresh_func)(void)) ...@@ -83,6 +83,7 @@ void do_help(void (*refresh_func)(void))
if (*ptr == '\n') if (*ptr == '\n')
ptr++; ptr++;
} }
if (last_line > 0) if (last_line > 0)
last_line--; last_line--;
......
...@@ -1085,6 +1085,7 @@ int do_yesno_prompt(bool all, const char *msg) ...@@ -1085,6 +1085,7 @@ int do_yesno_prompt(bool all, const char *msg)
/* Clear the shortcut list from the bottom of the screen. */ /* Clear the shortcut list from the bottom of the screen. */
blank_bottombars(); blank_bottombars();
/* Now show the ones for "Yes", "No", "Cancel" and maybe "All". */
sprintf(shortstr, " %c", yesstr[0]); sprintf(shortstr, " %c", yesstr[0]);
wmove(bottomwin, 1, 0); wmove(bottomwin, 1, 0);
onekey(shortstr, _("Yes"), width); onekey(shortstr, _("Yes"), width);
...@@ -1113,8 +1114,7 @@ int do_yesno_prompt(bool all, const char *msg) ...@@ -1113,8 +1114,7 @@ int do_yesno_prompt(bool all, const char *msg)
wattroff(bottomwin, A_BOLD); wattroff(bottomwin, A_BOLD);
wattroff(bottomwin, interface_color_pair[TITLE_BAR].pairnum); wattroff(bottomwin, interface_color_pair[TITLE_BAR].pairnum);
/* Refresh the edit window and the statusbar before getting /* Refresh edit window and statusbar before getting input. */
* input. */
wnoutrefresh(edit); wnoutrefresh(edit);
wnoutrefresh(bottomwin); wnoutrefresh(bottomwin);
......
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