diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-07-09 19:16:35 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-07-09 19:16:35 +0200 |
commit | ae97b94176062d30ea8c68bb83cde034c5150c78 (patch) | |
tree | 21c785e01745c5a26b0c775ce327c9d8376e9e30 /runtime/doc | |
parent | e4358906fdbd0b2df1889dad49c79a9c8cee5ac4 (diff) | |
download | vim-git-ae97b94176062d30ea8c68bb83cde034c5150c78.tar.gz |
patch 8.2.1166: once mouse move events are enabled getchar() returns themv8.2.1166
Problem: Once mouse move events are enabled getchar() returns them.
Solution: Ignore K_MOUSEMOVE in getchar(). (closes #6424)
Diffstat (limited to 'runtime/doc')
-rw-r--r-- | runtime/doc/eval.txt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index 10b57b7b8..08399b8e0 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -5023,8 +5023,9 @@ getchar([expr]) *getchar()* When the user clicks a mouse button, the mouse event will be returned. The position can then be found in |v:mouse_col|, |v:mouse_lnum|, |v:mouse_winid| and |v:mouse_win|. - |getmousepos()| can also be used. This example positions the - mouse as it would normally happen: > + |getmousepos()| can also be used. Mouse move events will be + ignored. + This example positions the mouse as it would normally happen: > let c = getchar() if c == "\<LeftMouse>" && v:mouse_win > 0 exe v:mouse_win . "wincmd w" |