aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authornicm <nicm>2016-11-24 13:38:44 +0000
committernicm <nicm>2016-11-24 13:38:44 +0000
commit7e6c2cb23868fbfec11adacdc5da7e670a9b8bdb (patch)
tree8434375eb7b93316b239160a312fa77392bfa80d /tmux.h
parent6de466cf8b665d8725301307c57f6d8cb2e65a3f (diff)
downloadrtmux-7e6c2cb23868fbfec11adacdc5da7e670a9b8bdb.tar.gz
rtmux-7e6c2cb23868fbfec11adacdc5da7e670a9b8bdb.tar.bz2
rtmux-7e6c2cb23868fbfec11adacdc5da7e670a9b8bdb.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 'tmux.h')
-rw-r--r--tmux.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/tmux.h b/tmux.h
index 47be55b5..ff5fb184 100644
--- a/tmux.h
+++ b/tmux.h
@@ -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 *);