tweaks: avoid redrawing the entire window when just a 'touch' will do
parent
dde74dee78
commit
bbed065fa8
|
@ -2559,11 +2559,11 @@ int main(int argc, char **argv)
|
||||||
if (ISSET(ZERO) && lastmessage > HUSH) {
|
if (ISSET(ZERO) && lastmessage > HUSH) {
|
||||||
if (openfile->current_y == editwinrows - 1 && LINES > 1) {
|
if (openfile->current_y == editwinrows - 1 && LINES > 1) {
|
||||||
edit_scroll(FORWARD);
|
edit_scroll(FORWARD);
|
||||||
edit_refresh();
|
wnoutrefresh(edit);
|
||||||
}
|
}
|
||||||
redrawwin(bottomwin);
|
redrawwin(bottomwin);
|
||||||
wnoutrefresh(bottomwin);
|
wnoutrefresh(bottomwin);
|
||||||
wnoutrefresh(edit);
|
place_the_cursor();
|
||||||
} else if (ISSET(ZERO) && lastmessage > VACUUM)
|
} else if (ISSET(ZERO) && lastmessage > VACUUM)
|
||||||
wredrawln(edit, editwinrows - 1, 1);
|
wredrawln(edit, editwinrows - 1, 1);
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -1704,7 +1704,10 @@ void check_statusblank(void)
|
||||||
|
|
||||||
/* When windows overlap, make sure to show the edit window now. */
|
/* When windows overlap, make sure to show the edit window now. */
|
||||||
if (currmenu == MMAIN && (ISSET(ZERO) || LINES == 1))
|
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. */
|
/* Ensure that the status bar will be wiped upon the next keystroke. */
|
||||||
|
|
Loading…
Reference in New Issue