]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.0406: Divide by zero with getmousepos() and 'smoothscroll' v9.1.0406
authorzeertzjq <zeertzjq@outlook.com>
Sat, 11 May 2024 09:23:37 +0000 (11:23 +0200)
committerChristian Brabandt <cb@256bit.org>
Sat, 11 May 2024 09:23:37 +0000 (11:23 +0200)
commit031a745608d615d56f9d79bb0f76e2a74b2eaf14
tree93fb1e4f968bbd3e4a08e18b6e5fa7dd98ac9b64
parent1c5728e0c4a9df930879f9f0ca108092d5902194
patch 9.1.0406: Divide by zero with getmousepos() and 'smoothscroll'

Problem:  Divide by zero with getmousepos() and 'smoothscroll'.
Solution: Don't compute skip_lines when width1 is zero.
          (zeertzjq)

closes: #14747

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