aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/util.lua
diff options
context:
space:
mode:
authorGregory Anders <greg@gpanders.com>2021-11-24 19:32:26 -0700
committerGregory Anders <greg@gpanders.com>2021-11-24 20:03:36 -0700
commitc59f2008e0d4998094123e4976210a78e8f6b4d0 (patch)
tree7ea2abba3d76be1d06f7b13833cd4131aeb83957 /runtime/lua/vim/lsp/util.lua
parentf2722884a88170d62bd2509b94cda759d5312646 (diff)
downloadrneovim-c59f2008e0d4998094123e4976210a78e8f6b4d0.tar.gz
rneovim-c59f2008e0d4998094123e4976210a78e8f6b4d0.tar.bz2
rneovim-c59f2008e0d4998094123e4976210a78e8f6b4d0.zip
fix(diagnostic): get line count per buffer when clamping
Fixes a bug when `get_diagnostics` is called with a nil `bufnr`. Diagnostics should be clamped for the buffer they reside in, not the current buffer.
Diffstat (limited to 'runtime/lua/vim/lsp/util.lua')
0 files changed, 0 insertions, 0 deletions