mirror of
git://git.sv.gnu.org/nano.git
synced 2024-11-25 14:20:46 +03:00
tweaks: fold a special case into the general one
This commit is contained in:
parent
3eda0135bc
commit
3be4ea0dc1
@ -2548,7 +2548,7 @@ int main(int argc, char **argv)
|
||||
|
||||
as_an_at = TRUE;
|
||||
|
||||
if (refresh_needed && (LINES > 1 || lastmessage == VACUUM))
|
||||
if ((refresh_needed && LINES > 1) || (LINES == 1 && lastmessage <= HUSH))
|
||||
edit_refresh();
|
||||
else
|
||||
place_the_cursor();
|
||||
|
@ -182,10 +182,6 @@ void read_keys_from(WINDOW *win)
|
||||
bool timed = FALSE;
|
||||
#endif
|
||||
|
||||
/* On a one-row terminal, overwrite an unimportant message. */
|
||||
if (LINES == 1 && currmenu == MMAIN && lastmessage == HUSH)
|
||||
edit_refresh();
|
||||
|
||||
/* Before reading the first keycode, display any pending screen updates. */
|
||||
doupdate();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user