diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2018-07-06 07:11:24 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2018-07-06 07:11:24 +0000 |
commit | be5053879ddbeb0bb29246c349951986b654c33c (patch) | |
tree | 05c9fe6ae1e145e721993cefb896470205daa36c /usr.bin | |
parent | 7ae31a6cb2f8effc8c267001e98f4148c54a1e94 (diff) |
Add a rectangle_toggle format, from Hirokazu Hata.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/tmux/tmux.1 | 5 | ||||
-rw-r--r-- | usr.bin/tmux/window-copy.c | 3 |
2 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/tmux/tmux.1 b/usr.bin/tmux/tmux.1 index 1f385779580..6211f2c17ad 100644 --- a/usr.bin/tmux/tmux.1 +++ b/usr.bin/tmux/tmux.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: tmux.1,v 1.605 2018/07/04 13:27:32 jmc Exp $ +.\" $OpenBSD: tmux.1,v 1.606 2018/07/06 07:11:23 nicm Exp $ .\" .\" Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> .\" @@ -14,7 +14,7 @@ .\" IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING .\" OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: July 4 2018 $ +.Dd $Mdocdate: July 6 2018 $ .Dt TMUX 1 .Os .Sh NAME @@ -3781,6 +3781,7 @@ The following variables are available, where appropriate: .It Li "pane_tty" Ta "" Ta "Pseudo terminal of pane" .It Li "pane_width" Ta "" Ta "Width of pane" .It Li "pid" Ta "" Ta "Server PID" +.It Li "rectangle_toggle" Ta "" Ta "1 if rectangle selection is activated" .It Li "scroll_region_lower" Ta "" Ta "Bottom of scroll region in pane" .It Li "scroll_region_upper" Ta "" Ta "Top of scroll region in pane" .It Li "scroll_position" Ta "" Ta "Scroll position in copy mode" diff --git a/usr.bin/tmux/window-copy.c b/usr.bin/tmux/window-copy.c index 5dd90069f94..72f1c4e1dbe 100644 --- a/usr.bin/tmux/window-copy.c +++ b/usr.bin/tmux/window-copy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: window-copy.c,v 1.190 2018/07/04 09:44:07 nicm Exp $ */ +/* $OpenBSD: window-copy.c,v 1.191 2018/07/06 07:11:23 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -2447,6 +2447,7 @@ window_copy_add_formats(struct window_pane *wp, struct format_tree *ft) format_add(ft, "selection_present", "%d", data->screen.sel.flag); format_add(ft, "scroll_position", "%d", data->oy); + format_add(ft, "rectangle_toggle", "%d", data->rectflag); } static void |