]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.0077: Unnecessary call to redraw_for_cursorline() in nv_mousescroll() v9.1.0077
authorzeertzjq <zeertzjq@outlook.com>
Tue, 6 Feb 2024 09:43:36 +0000 (10:43 +0100)
committerChristian Brabandt <cb@256bit.org>
Tue, 6 Feb 2024 09:43:36 +0000 (10:43 +0100)
commit3f1b5312e0fa0089f255bf9c0c3b27590552119e
tree0afd6d3931b392dea02d2229af6491b5215b2363
parent0f4054feb66ea55414f97add63b3070d7d7b5295
patch 9.1.0077: Unnecessary call to redraw_for_cursorline() in nv_mousescroll()

Problem:  The call to redraw_for_cursorline() in nv_mousescroll() is
          unnecessary because redraw_for_cursorline() only sets redraw
          type to UPD_VALID, and all code paths in do_mousescroll()
          already set redraw type to at least UPD_VALID.
Solution: Remove call to redraw_for_cursorline() in nv_mousescroll().
          (zeertzjq)

closes: #13979

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/mouse.c
src/move.c
src/proto/move.pro
src/version.c