summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/grid-view.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2022-09-28 07:55:30 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2022-09-28 07:55:30 +0000
commitaa264d2824fae548e9fde243c360ef165c4bfa60 (patch)
treea7f81c799f932378df7b5a7e12ebf1c3c18b5656 /usr.bin/tmux/grid-view.c
parent72d2e63abd8cb72b2814932f0d4fcb203ab7cc08 (diff)
Add a -T flag to capture-pane to stop at the last used cell instead of
the full width. Restore the previous behaviour by making it default to off unless -J is used (the only time it matters). Fixes mosh unit tests; GitHub issue 3339.
Diffstat (limited to 'usr.bin/tmux/grid-view.c')
-rw-r--r--usr.bin/tmux/grid-view.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/grid-view.c b/usr.bin/tmux/grid-view.c
index 053b104fd63..f13b27cea0d 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.35 2022/07/06 07:36:36 nicm Exp $ */
+/* $OpenBSD: grid-view.c,v 1.36 2022/09/28 07:55:29 nicm Exp $ */
/*
* Copyright (c) 2008 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -231,5 +231,5 @@ grid_view_string_cells(struct grid *gd, u_int px, u_int py, u_int nx)
px = grid_view_x(gd, px);
py = grid_view_y(gd, py);
- return (grid_string_cells(gd, px, py, nx, NULL, 0, 0, 0, NULL));
+ return (grid_string_cells(gd, px, py, nx, NULL, 0, NULL));
}