summaryrefslogtreecommitdiffstats
path: root/cmd-capture-pane.c
diff options
context:
space:
mode:
authornicm <nicm>2020-03-31 07:00:34 +0000
committernicm <nicm>2020-03-31 07:00:34 +0000
commit3bbd66c0137fe95c348ce333ea7eec9507db7659 (patch)
tree29dc3cae06502a4e2d2e3e153f383cdb7a4c16cc /cmd-capture-pane.c
parenteedf059d00365efd763cb9d99835c91d31320956 (diff)
Move alternate screen into the screen rather than the pane.
Diffstat (limited to 'cmd-capture-pane.c')
-rw-r--r--cmd-capture-pane.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-capture-pane.c b/cmd-capture-pane.c
index 2c8dd920..ad6755ba 100644
--- a/cmd-capture-pane.c
+++ b/cmd-capture-pane.c
@@ -118,7 +118,7 @@ cmd_capture_pane_history(struct args *args, struct cmdq_item *item,
sx = screen_size_x(&wp->base);
if (args_has(args, 'a')) {
- gd = wp->saved_grid;
+ gd = wp->base.saved_grid;
if (gd == NULL) {
if (!args_has(args, 'q')) {
cmdq_error(item, "no alternate screen");