mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 05:58:33 +00:00
ui: multigrid mouse support
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user