diff options
author | 2016-09-02 20:57:20 +0000 | |
---|---|---|
committer | 2016-09-02 20:57:20 +0000 | |
commit | 93ccd604c0f86dc80a6b0a1f527908e639d95e7f (patch) | |
tree | af2ca8175535d53869f9bf4fc65394ae54d89809 /usr.bin/tmux/grid-view.c | |
parent | clarify that -L will exit without running a command. (diff) | |
download | wireguard-openbsd-93ccd604c0f86dc80a6b0a1f527908e639d95e7f.tar.xz wireguard-openbsd-93ccd604c0f86dc80a6b0a1f527908e639d95e7f.zip |
Remember the number of lines scrolled into the history (versus cleared
into the history) and when resizing only use scrolled lines and not
cleared lines (which are probably not intended to reappear). From
Chaoren Lin.
Diffstat (limited to 'usr.bin/tmux/grid-view.c')
-rw-r--r-- | usr.bin/tmux/grid-view.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/tmux/grid-view.c b/usr.bin/tmux/grid-view.c index adb20b93e1b..95041712ff7 100644 --- a/usr.bin/tmux/grid-view.c +++ b/usr.bin/tmux/grid-view.c @@ -1,4 +1,4 @@ -/* $OpenBSD: grid-view.c,v 1.24 2016/01/19 15:59:12 nicm Exp $ */ +/* $OpenBSD: grid-view.c,v 1.25 2016/09/02 20:57:20 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -67,6 +67,7 @@ grid_view_clear_history(struct grid *gd) grid_collect_history(gd); grid_scroll_history(gd); } + gd->hscrolled = 0; } /* Clear area. */ |