diff options
| author | James Trew <66286082+jamestrew@users.noreply.github.com> | 2022-02-14 11:39:58 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-14 17:39:58 +0100 |
| commit | 206e71d133fee0909a18253ad0c45625e83f0026 (patch) | |
| tree | 17d94241733f11d23e2cb89b2595c10e2d46638f /lua/telescope/builtin/diagnostics.lua | |
| parent | c948263d896d1515ac062439205bcb3b2bd3e1cd (diff) | |
fix: add opts.bufnr and opts.winnr to builtin picker (#1706)
Diffstat (limited to 'lua/telescope/builtin/diagnostics.lua')
| -rw-r--r-- | lua/telescope/builtin/diagnostics.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lua/telescope/builtin/diagnostics.lua b/lua/telescope/builtin/diagnostics.lua index 0fce711..6b13e70 100644 --- a/lua/telescope/builtin/diagnostics.lua +++ b/lua/telescope/builtin/diagnostics.lua @@ -86,6 +86,9 @@ local diagnostics_to_tbl = function(opts) end diagnostics.get = function(opts) + if opts.bufnr ~= 0 then + opts.bufnr = nil + end if opts.bufnr == nil then opts.path_display = vim.F.if_nil(opts.path_display, {}) end |
