Mercurial > vim
comparison src/libvterm/src/vterm_internal.h @ 13448:a62b0bbc8834 v8.0.1598
patch 8.0.1598: cannot select text in a terminal with the mouse
commit https://github.com/vim/vim/commit/c48369c3fc507f398abbc933a60f653c6abe6701
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Mar 11 19:30:45 2018 +0100
patch 8.0.1598: cannot select text in a terminal with the mouse
Problem: Cannot select text in a terminal with the mouse.
Solution: When a job in a terminal is not consuming mouse events, use them
for modeless selection. Also stop Insert mode when clicking in a
terminal window.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 11 Mar 2018 19:45:05 +0100 |
parents | 5e47c4bdf3a6 |
children | 8bdcc8faeb32 |
comparison
equal
deleted
inserted
replaced
13447:17eebaa3188f | 13448:a62b0bbc8834 |
---|---|
93 | 93 |
94 /* Mouse state */ | 94 /* Mouse state */ |
95 int mouse_col, mouse_row; | 95 int mouse_col, mouse_row; |
96 int mouse_buttons; | 96 int mouse_buttons; |
97 int mouse_flags; | 97 int mouse_flags; |
98 #define MOUSE_WANT_CLICK 0x01 | |
99 #define MOUSE_WANT_DRAG 0x02 | |
100 #define MOUSE_WANT_MOVE 0x04 | |
101 | 98 |
102 enum { MOUSE_X10, MOUSE_UTF8, MOUSE_SGR, MOUSE_RXVT } mouse_protocol; | 99 enum { MOUSE_X10, MOUSE_UTF8, MOUSE_SGR, MOUSE_RXVT } mouse_protocol; |
103 | 100 |
104 /* Last glyph output, for Unicode recombining purposes */ | 101 /* Last glyph output, for Unicode recombining purposes */ |
105 uint32_t *combine_chars; | 102 uint32_t *combine_chars; |