summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/tmux.h
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2016-11-24 13:38:44 +0000
committernicm <nicm@openbsd.org>2016-11-24 13:38:44 +0000
commite9c0de9542d71c0a79fe1011021cd59df2aee184 (patch)
tree3f0059790bbe0353e10fe814bc28b7d3afa09be1 /usr.bin/tmux/tmux.h
parentadd an io_error() accessor to avoid dereferencing the io struct directly. (diff)
downloadwireguard-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.h5
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 *);