aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/ui.lua
diff options
context:
space:
mode:
authorMichael Lingelbach <m.j.lbach@gmail.com>2021-12-02 09:38:44 -0500
committerGitHub <noreply@github.com>2021-12-02 06:38:44 -0800
commit254c22afc39ecfd926276884e13af0638cf8341a (patch)
tree35f40f86f95616355ee278d55f142a207ce044a7 /runtime/lua/vim/ui.lua
parent73b35ef10f95536874bfa147c44f62c4fea08f0f (diff)
downloadrneovim-254c22afc39ecfd926276884e13af0638cf8341a.tar.gz
rneovim-254c22afc39ecfd926276884e13af0638cf8341a.tar.bz2
rneovim-254c22afc39ecfd926276884e13af0638cf8341a.zip
fix(diagnostic): clamp diagnostics on negative line numbers (#16496)
Closes https://github.com/neovim/neovim/issues/16492 Despite having logic for setting the maximum diagnostic line number to at minimum 0, previously the conditional statement only checked if lnum and end_lnum were greater than the line count. Fix: also check if lnum and end_lnum are less than 0.
Diffstat (limited to 'runtime/lua/vim/ui.lua')
0 files changed, 0 insertions, 0 deletions