]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.0.1247: divide by zero with 'smoothscroll' set and a narrow window v9.0.1247
authorBram Moolenaar <Bram@vim.org>
Thu, 26 Jan 2023 14:14:43 +0000 (14:14 +0000)
committerBram Moolenaar <Bram@vim.org>
Thu, 26 Jan 2023 14:14:43 +0000 (14:14 +0000)
commit870219c58c0804bdc55419b2e455c06ac715a835
treef259e239be4a2a0e34d466c6446741d7f2d66844
parent142ed77898facf8f423fee2717efee1749c55f9a
patch 9.0.1247: divide by zero with 'smoothscroll' set and a narrow window

Problem:    Divide by zero with 'smoothscroll' set and a narrow window.
Solution:   Bail out when the window is too narrow.
src/move.c
src/testdir/dumps/Test_smoothscroll_zero_1.dump [new file with mode: 0644]
src/testdir/dumps/Test_smoothscroll_zero_2.dump [new file with mode: 0644]
src/testdir/test_scroll_opt.vim
src/version.c