diff options
author | Gregory Anders <greg@gpanders.com> | 2021-07-19 15:23:12 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-19 14:23:12 -0700 |
commit | 4ed2d4fd666294c21477bb962f3bf655bcc71a91 (patch) | |
tree | a24b9fc3a3fd0f37d517856c934ef672294b0e3a /runtime/lua/vim/shared.lua | |
parent | 223c355040c138fbe0a6c6de91fc4d01919d4ce2 (diff) | |
download | rneovim-4ed2d4fd666294c21477bb962f3bf655bcc71a91.tar.gz rneovim-4ed2d4fd666294c21477bb962f3bf655bcc71a91.tar.bz2 rneovim-4ed2d4fd666294c21477bb962f3bf655bcc71a91.zip |
fix(lsp): allow diagnostic.clear to accept nil bufnr (#15137)
Passing `nil` is equivalent to passing 0, i.e. it simply uses the
current buffer number.
This fixes a bug when vim.lsp.diagnostic.disable() is called without
arguments.
Diffstat (limited to 'runtime/lua/vim/shared.lua')
0 files changed, 0 insertions, 0 deletions