mirror of
https://github.com/tmux/tmux.git
synced 2025-09-01 20:57:00 +00:00
Support "alternate screen" mode (terminfo smcup/rmcup) typically used by full
screen interactive programs to preserve the screen contents. When activated, it saves a copy of the visible grid and disables scrolling into and resizing out of the history; when deactivated the visible data is restored and the history reenabled.
This commit is contained in:
@ -92,7 +92,7 @@ grid_view_scroll_region_up(struct grid *gd, u_int rupper, u_int rlower)
|
||||
{
|
||||
GRID_DEBUG(gd, "rupper=%u, rlower=%u", rupper, rlower);
|
||||
|
||||
if (rupper == 0 && rlower == gd->sy - 1) {
|
||||
if (gd->flags & GRID_HISTORY && rupper == 0 && rlower == gd->sy - 1) {
|
||||
grid_scroll_line(gd);
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user