From 7e6c2cb23868fbfec11adacdc5da7e670a9b8bdb Mon Sep 17 00:00:00 2001 From: nicm Date: Thu, 24 Nov 2016 13:38:44 +0000 Subject: 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. --- tmux.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tmux.h') 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 *); -- cgit