tweaks: avoid redrawing the entire window when just a 'touch' will do

master
Benno Schulenberg 2021-11-21 10:37:39 +01:00
parent dde74dee78
commit bbed065fa8
2 changed files with 6 additions and 3 deletions

View File

@ -2559,11 +2559,11 @@ int main(int argc, char **argv)
if (ISSET(ZERO) && lastmessage > HUSH) {
if (openfile->current_y == editwinrows - 1 && LINES > 1) {
edit_scroll(FORWARD);
edit_refresh();
wnoutrefresh(edit);
}
redrawwin(bottomwin);
wnoutrefresh(bottomwin);
wnoutrefresh(edit);
place_the_cursor();
} else if (ISSET(ZERO) && lastmessage > VACUUM)
wredrawln(edit, editwinrows - 1, 1);
#endif

View File

@ -1704,7 +1704,10 @@ void check_statusblank(void)
/* When windows overlap, make sure to show the edit window now. */
if (currmenu == MMAIN && (ISSET(ZERO) || LINES == 1))
edit_refresh();
{
wredrawln(edit, editwinrows - 1, 1);
wnoutrefresh(edit);
}
}
/* Ensure that the status bar will be wiped upon the next keystroke. */