Move alternate screen into the screen rather than the pane.

This commit is contained in:
nicm
2020-03-31 07:00:34 +00:00
parent eedf059d00
commit 3bbd66c013
7 changed files with 127 additions and 107 deletions

View File

@ -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");