diff options
author | bambu <bambu@revengsec.com> | 2015-10-12 20:27:17 -0400 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2016-04-25 01:31:44 -0400 |
commit | 5a5ef1c2227f1cb1c599cc8224a48c3e831aca9b (patch) | |
tree | 0f1a57e5fcd7d132d4f4606f317647f8dcc2e79f /src/nvim/edit.c | |
parent | dfe85dd80afe1026608faa222c23f1f84ef01135 (diff) | |
download | rneovim-5a5ef1c2227f1cb1c599cc8224a48c3e831aca9b.tar.gz rneovim-5a5ef1c2227f1cb1c599cc8224a48c3e831aca9b.tar.bz2 rneovim-5a5ef1c2227f1cb1c599cc8224a48c3e831aca9b.zip |
mouse: Implement horizontal scroll. #3450
- Code from Vim source.
- Removed the check for 'guioptions'
- mouse_spec.lua: test <ScrollWheelLeft> and <ScrollWheelRight>
- Move horizontal scroll logic to mouse.c
- Remove 'gui_' from the function names
- Renamed variables to be more specific (as opposed to generic p, w).
- Marked some functions as `static`
Diffstat (limited to 'src/nvim/edit.c')
-rw-r--r-- | src/nvim/edit.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/edit.c b/src/nvim/edit.c index 3a4b475bc8..667ce1e779 100644 --- a/src/nvim/edit.c +++ b/src/nvim/edit.c @@ -7741,6 +7741,8 @@ static void ins_mousescroll(int dir) (long)(curwin->w_botline - curwin->w_topline)); else scroll_redraw(dir, 3L); + } else { + mouse_scroll_horiz(dir); } did_scroll = TRUE; } |