diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-07-01 15:49:29 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-07-01 15:49:29 +0200 |
commit | d58d4f90aeb381045000ea46493b5bd9b9d1fa23 (patch) | |
tree | d985d054985ee06335bb0cb584e70dd188f086fb /src/libvterm | |
parent | ef8c617b9c4dc262ed34598d7e382237696c3d61 (diff) | |
download | vim-git-d58d4f90aeb381045000ea46493b5bd9b9d1fa23.tar.gz |
patch 8.2.1108: mouse left-right scroll is not supported in terminal windowv8.2.1108
Problem: Mouse left-right scroll is not supported in terminal window.
Solution: Implement mouse codes 6 and 7. (Trygve Aaberge, closes #6363)
Diffstat (limited to 'src/libvterm')
-rw-r--r-- | src/libvterm/src/mouse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libvterm/src/mouse.c b/src/libvterm/src/mouse.c index 4e363134e..ed60b0147 100644 --- a/src/libvterm/src/mouse.c +++ b/src/libvterm/src/mouse.c @@ -83,7 +83,7 @@ void vterm_mouse_button(VTerm *vt, int button, int pressed, VTermModifier mod) state->mouse_buttons &= ~(1 << (button-1)); } - /* Most of the time we don't get button releases from 4/5 */ + /* Most of the time we don't get button releases from 4/5/6/7 */ if(state->mouse_buttons == old_buttons && button < 4) return; if (!(state->mouse_flags & MOUSE_WANT_CLICK)) @@ -92,7 +92,7 @@ void vterm_mouse_button(VTerm *vt, int button, int pressed, VTermModifier mod) if(button < 4) { output_mouse(state, button-1, pressed, mod, state->mouse_col, state->mouse_row); } - else if(button < 6) { + else if(button < 8) { output_mouse(state, button-4 + 0x40, pressed, mod, state->mouse_col, state->mouse_row); } } |