aboutsummaryrefslogtreecommitdiff
path: root/test/functional/lua/buffer_updates_spec.lua
diff options
context:
space:
mode:
authorstatiolake <statiolake@gmail.com>2021-05-02 07:35:52 +0900
committerGitHub <noreply@github.com>2021-05-02 00:35:52 +0200
commitb227cedf82341813514da55baa48511eca4014b0 (patch)
tree9c7b99d418059fc1d02fd7036dc3bab452de36d1 /test/functional/lua/buffer_updates_spec.lua
parent993ca90c9b53033216d4973e2f995b995ed5740e (diff)
downloadrneovim-b227cedf82341813514da55baa48511eca4014b0.tar.gz
rneovim-b227cedf82341813514da55baa48511eca4014b0.tar.bz2
rneovim-b227cedf82341813514da55baa48511eca4014b0.zip
signs: fix overflow during adjustment on Windows (#14472)
On Windows, `new_lnum + MAXLNUM` causes overflow and as a result the line number of that sign becomes invalid negative number. This occurs when the `set signcolumn=yes`, in other words `signcolumn` is not `auto` and the sign column is less than 2 columns. The related change was made in the commit f2ed7605da45eb79a4f7bb89fb19f680fb5a4927. Originally the above addition is only executed if `amount != MAXLNUM`, so reintroducing this check fixes the bug and will hardly produces a new bug. Fixes https://github.com/neovim/neovim/issues/14460
Diffstat (limited to 'test/functional/lua/buffer_updates_spec.lua')
0 files changed, 0 insertions, 0 deletions