display: don't let a message write over the second help line

When suspending nano on a Linux console (or FreeBSD console), the
helpful message about using the 'fg' command overwrote the start
of the second help line, kind of hiding the message.  So, output
a double newline before the message to make it stand out.

Also, drop a pointless cursor movement, as endwin() determines
the placement of the cursor all by itself.
master
Benno Schulenberg 2020-01-07 13:31:08 +01:00
parent 5b07e5fd1f
commit 3f0d2fd5ca
1 changed files with 2 additions and 3 deletions

View File

@ -1210,12 +1210,11 @@ RETSIGTYPE do_suspend(int signal)
#ifdef ENABLE_MOUSE
disable_mouse_support();
#endif
/* Move the cursor to the last line of the screen. */
move(LINES - 1, 0);
curs_set(1);
endwin();
printf("\n\n");
/* Display our helpful message. */
printf(_("Use \"fg\" to return to nano.\n"));
fflush(stdout);