diff options
author | Steven Oliver <oliver.steven@gmail.com> | 2015-01-02 10:26:01 -0500 |
---|---|---|
committer | Steven Oliver <oliver.steven@gmail.com> | 2015-01-02 21:10:08 -0500 |
commit | f3b06ba6d12b19d979c32f1903ec6ebb2041a10c (patch) | |
tree | 07ed669e42684a8e0b4d819e95307c7421575e68 | |
parent | e114529972c713d49ee50896760ea00365abe486 (diff) | |
download | rneovim-f3b06ba6d12b19d979c32f1903ec6ebb2041a10c.tar.gz rneovim-f3b06ba6d12b19d979c32f1903ec6ebb2041a10c.tar.bz2 rneovim-f3b06ba6d12b19d979c32f1903ec6ebb2041a10c.zip |
globals.h: Remove unused global variable
-rw-r--r-- | config/config.h.in | 1 | ||||
-rw-r--r-- | src/nvim/globals.h | 8 | ||||
-rw-r--r-- | src/nvim/term.c | 4 |
3 files changed, 0 insertions, 13 deletions
diff --git a/config/config.h.in b/config/config.h.in index 005eb1ccb0..0a2aa4786e 100644 --- a/config/config.h.in +++ b/config/config.h.in @@ -79,7 +79,6 @@ #define FEAT_BROWSE #define FEAT_CSCOPE #define FEAT_MOUSE -#define FEAT_MOUSE_DEC #define FEAT_MOUSE_NET #define FEAT_MOUSE_SGR #define FEAT_MOUSE_TTY diff --git a/src/nvim/globals.h b/src/nvim/globals.h index f53a780efe..11a7e9ecac 100644 --- a/src/nvim/globals.h +++ b/src/nvim/globals.h @@ -497,14 +497,6 @@ EXTERN bool mouse_past_bottom INIT(= false); /* mouse below last line */ EXTERN bool mouse_past_eol INIT(= false); /* mouse right of line */ EXTERN int mouse_dragging INIT(= 0); /* extending Visual area with mouse dragging */ -/* - * When the DEC mouse has been pressed but not yet released we enable - * automatic querys for the mouse position. - */ -EXTERN int WantQueryMouse INIT(= FALSE); - - - /* Value set from 'diffopt'. */ EXTERN int diff_context INIT(= 6); /* context for folds */ diff --git a/src/nvim/term.c b/src/nvim/term.c index ceec140670..cf2b78394f 100644 --- a/src/nvim/term.c +++ b/src/nvim/term.c @@ -3448,23 +3448,19 @@ int check_termcode(int max_offset, char_u *buf, int bufsize, int *buflen) if (Pb) { held_button = mouse_code; mouse_code |= MOUSE_DRAG; - WantQueryMouse = TRUE; } is_drag = TRUE; showmode(); break; case 2: mouse_code = MOUSE_LEFT; - WantQueryMouse = TRUE; break; case 3: mouse_code = MOUSE_RELEASE | MOUSE_LEFT; break; case 4: mouse_code = MOUSE_MIDDLE; - WantQueryMouse = TRUE; break; case 5: mouse_code = MOUSE_RELEASE | MOUSE_MIDDLE; break; case 6: mouse_code = MOUSE_RIGHT; - WantQueryMouse = TRUE; break; case 7: mouse_code = MOUSE_RELEASE | MOUSE_RIGHT; break; |