diff options
author | Michael Lingelbach <m.j.lbach@gmail.com> | 2021-09-18 10:31:40 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-18 10:31:40 -0700 |
commit | 340f77e78ef6589176822d53cf5507295bae771e (patch) | |
tree | a7ef212a8168f1bc3a79f81c4713717efd36ffc0 /runtime/lua/vim/diagnostic.lua | |
parent | de406f651c6f926db4223b69ef312777e8afe01b (diff) | |
parent | 752d2d2081a72bcb7698d75b5344c2cae06132cb (diff) | |
download | rneovim-340f77e78ef6589176822d53cf5507295bae771e.tar.gz rneovim-340f77e78ef6589176822d53cf5507295bae771e.tar.bz2 rneovim-340f77e78ef6589176822d53cf5507295bae771e.zip |
Merge pull request #15710 from gpanders/show_line_diagnostics
fix(diagnostic): resolve nil bufnr in show_line_diagnostics
Diffstat (limited to 'runtime/lua/vim/diagnostic.lua')
-rw-r--r-- | runtime/lua/vim/diagnostic.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/lua/vim/diagnostic.lua b/runtime/lua/vim/diagnostic.lua index 1e7f95a353..00e4301fa0 100644 --- a/runtime/lua/vim/diagnostic.lua +++ b/runtime/lua/vim/diagnostic.lua @@ -1073,6 +1073,7 @@ function M.show_line_diagnostics(opts, bufnr, lnum) opts = opts or {} opts.focus_id = "line_diagnostics" opts.lnum = lnum or (vim.api.nvim_win_get_cursor(0)[1] - 1) + bufnr = get_bufnr(bufnr) local line_diagnostics = M.get(bufnr, opts) return show_diagnostics(opts, line_diagnostics) end |