Commit b33563f
fix: make right-click mouse work in Neovim 0.12+
In Neovim 0.12+, normal! with mouse key events (<LeftMouse>,
<LeftRelease>) is restricted and cannot be used to replay mouse events.
This caused E492 errors in s:RightRelease.
Fixes:
- s:MousePress: use wincmd w + cursor() for Neovim instead of
normal! \<LeftMouse>
- s:MiddleRelease: skip normal! \<LeftRelease> for Neovim
- s:RightRelease: skip normal! \<LeftRelease> for Neovim (root cause
of the reported E492 error in issue #1)
Co-authored-by: Matěj Cepl <mcepl@cepl.eu>1 parent 74c0afe commit b33563f
1 file changed
Lines changed: 12 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
980 | 980 | | |
981 | 981 | | |
982 | 982 | | |
983 | | - | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
984 | 989 | | |
985 | 990 | | |
986 | 991 | | |
| |||
1001 | 1006 | | |
1002 | 1007 | | |
1003 | 1008 | | |
1004 | | - | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
1005 | 1012 | | |
1006 | 1013 | | |
1007 | 1014 | | |
| |||
1047 | 1054 | | |
1048 | 1055 | | |
1049 | 1056 | | |
1050 | | - | |
| 1057 | + | |
| 1058 | + | |
| 1059 | + | |
1051 | 1060 | | |
1052 | 1061 | | |
1053 | 1062 | | |
| |||
0 commit comments