aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/getchar.c
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2021-05-06 00:23:18 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2021-05-06 00:26:37 -0400
commitf70ecbd4dc548728d206e9b497cd0cae69189fdf (patch)
tree2ce17ae88a0e8ece2b383e8780e1a297a1800f5e /src/nvim/getchar.c
parent51403d6d411ca9bc8b4e8d66003a52781e5c698e (diff)
downloadrneovim-f70ecbd4dc548728d206e9b497cd0cae69189fdf.tar.gz
rneovim-f70ecbd4dc548728d206e9b497cd0cae69189fdf.tar.bz2
rneovim-f70ecbd4dc548728d206e9b497cd0cae69189fdf.zip
vim-patch:8.2.1166: once mouse move events are enabled getchar() returns them
Problem: Once mouse move events are enabled getchar() returns them. Solution: Ignore K_MOUSEMOVE in getchar(). (closes vim/vim#6424) https://github.com/vim/vim/commit/ae97b94176062d30ea8c68bb83cde034c5150c78
Diffstat (limited to 'src/nvim/getchar.c')
-rw-r--r--src/nvim/getchar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/getchar.c b/src/nvim/getchar.c
index bb406a68c5..a0fa80f1e5 100644
--- a/src/nvim/getchar.c
+++ b/src/nvim/getchar.c
@@ -1322,7 +1322,7 @@ void openscript(
do {
update_topline_cursor(); // update cursor position and topline
normal_cmd(&oa, false); // execute one command
- vpeekc(); // check for end of file
+ (void)vpeekc(); // check for end of file
} while (scriptin[oldcurscript] != NULL);
State = save_State;