diff options
author | 2016-11-24 13:38:44 +0000 | |
---|---|---|
committer | 2016-11-24 13:38:44 +0000 | |
commit | e9c0de9542d71c0a79fe1011021cd59df2aee184 (patch) | |
tree | 3f0059790bbe0353e10fe814bc28b7d3afa09be1 /usr.bin/tmux/tmux.h | |
parent | add an io_error() accessor to avoid dereferencing the io struct directly. (diff) | |
download | wireguard-openbsd-e9c0de9542d71c0a79fe1011021cd59df2aee184.tar.xz wireguard-openbsd-e9c0de9542d71c0a79fe1011021cd59df2aee184.zip |
Make the selection able to exist independent of the cursor position, so
that it is not affected by scrolling. If MouseDragEnd1Pane is bound to
the new "stop-selection" command:
bind -Tcopy-mode MouseDragEnd1Pane stop-selection
A selection made with the mouse will stay as it is after button 1 is
released. (It also works bound to a key.)
From Artem Fokin.
Diffstat (limited to 'usr.bin/tmux/tmux.h')
-rw-r--r-- | usr.bin/tmux/tmux.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/tmux/tmux.h b/usr.bin/tmux/tmux.h index 0aaa89dbc73..40779e07474 100644 --- a/usr.bin/tmux/tmux.h +++ b/usr.bin/tmux/tmux.h @@ -1,4 +1,4 @@ -/* $OpenBSD: tmux.h,v 1.679 2016/11/23 17:01:24 nicm Exp $ */ +/* $OpenBSD: tmux.h,v 1.680 2016/11/24 13:38:44 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -681,6 +681,8 @@ LIST_HEAD(joblist, job); /* Screen selection. */ struct screen_sel { int flag; + int hidden; + int rectflag; enum { LINE_SEL_NONE, @@ -2055,6 +2057,7 @@ void screen_resize(struct screen *, u_int, u_int, int); void screen_set_selection(struct screen *, u_int, u_int, u_int, u_int, u_int, struct grid_cell *); void screen_clear_selection(struct screen *); +void screen_hide_selection(struct screen *); int screen_check_selection(struct screen *, u_int, u_int); void screen_select_cell(struct screen *, struct grid_cell *, const struct grid_cell *); |