From 5a5ef1c2227f1cb1c599cc8224a48c3e831aca9b Mon Sep 17 00:00:00 2001 From: bambu Date: Mon, 12 Oct 2015 20:27:17 -0400 Subject: mouse: Implement horizontal scroll. #3450 - Code from Vim source. - Removed the check for 'guioptions' - mouse_spec.lua: test and - 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` --- src/nvim/normal.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/nvim/normal.c') diff --git a/src/nvim/normal.c b/src/nvim/normal.c index 5b7c4b68b1..9173ea2d17 100644 --- a/src/nvim/normal.c +++ b/src/nvim/normal.c @@ -3927,6 +3927,8 @@ static void nv_mousescroll(cmdarg_T *cap) cap->count0 = 3; nv_scroll_line(cap); } + } else { + mouse_scroll_horiz(cap->arg); } curwin->w_redr_status = true; -- cgit