tweaks: transform a 'do' to a 'while', and reshuffle a comment

master
Benno Schulenberg 2018-01-20 17:12:07 +01:00
parent 467cc8edf3
commit 4295baa5fe
1 changed files with 7 additions and 6 deletions

View File

@ -2435,23 +2435,24 @@ void do_justify(bool full_justify)
uncutfunc->desc = unjust_tag;
display_main_list();
/* Now get a keystroke and see if it's unjustify. If not, put back
* the keystroke and return. */
#ifndef NANO_TINY
do {
kbinput = KEY_WINCH;
/* Now wait for the next keystroke. */
while (kbinput == KEY_WINCH)
#endif
{
statusbar(_("Can now UnJustify!"));
place_the_cursor();
kbinput = do_input(FALSE);
#ifndef NANO_TINY
} while (kbinput == KEY_WINCH);
#endif
}
/* Unset the suppression flag after showing the Unjustify message. */
suppress_cursorpos = FALSE;
func = func_from_key(&kbinput);
/* If the keystroke was Unjustify or Undo, then undo the justification. */
if (func == do_uncut_text
#ifndef NANO_TINY
|| func == do_undo