diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2019-01-20 13:36:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-20 13:36:20 +0100 |
commit | 62254d2cc0d3cbd0e8aea75657ffb82e29ccfdfd (patch) | |
tree | 2a0e717767dfe5cb793edf3feefdaf983a87942e /src/nvim/getchar.c | |
parent | ed6b44e1be2e0a8a1245ec3295040a092d3a05e3 (diff) | |
parent | a2be9c7218d7fb431191cd6146fba61bcd1e193e (diff) | |
download | rneovim-62254d2cc0d3cbd0e8aea75657ffb82e29ccfdfd.tar.gz rneovim-62254d2cc0d3cbd0e8aea75657ffb82e29ccfdfd.tar.bz2 rneovim-62254d2cc0d3cbd0e8aea75657ffb82e29ccfdfd.zip |
Merge pull request #9429 from bfredl/grid_mouse
API/UI: add nvim_input_mouse() including multigrid mouse support
Diffstat (limited to 'src/nvim/getchar.c')
-rw-r--r-- | src/nvim/getchar.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/nvim/getchar.c b/src/nvim/getchar.c index 53e9846c2d..be3e7bb676 100644 --- a/src/nvim/getchar.c +++ b/src/nvim/getchar.c @@ -1187,10 +1187,11 @@ void save_typebuf(void) alloc_typebuf(); } -static int old_char = -1; /* character put back by vungetc() */ -static int old_mod_mask; /* mod_mask for ungotten character */ -static int old_mouse_row; /* mouse_row related to old_char */ -static int old_mouse_col; /* mouse_col related to old_char */ +static int old_char = -1; // character put back by vungetc() +static int old_mod_mask; // mod_mask for ungotten character +static int old_mouse_grid; // mouse_grid related to old_char +static int old_mouse_row; // mouse_row related to old_char +static int old_mouse_col; // mouse_col related to old_char /* @@ -1391,6 +1392,7 @@ int vgetc(void) c = old_char; old_char = -1; mod_mask = old_mod_mask; + mouse_grid = old_mouse_grid; mouse_row = old_mouse_row; mouse_col = old_mouse_col; } else { @@ -1585,6 +1587,7 @@ vungetc ( /* unget one character (can only be done once!) */ { old_char = c; old_mod_mask = mod_mask; + old_mouse_grid = mouse_grid; old_mouse_row = mouse_row; old_mouse_col = mouse_col; } |