diff options
| author | Luke Kershaw <35707277+l-kershaw@users.noreply.github.com> | 2021-05-09 21:17:39 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-09 22:17:39 +0200 |
| commit | c061c216bfe082384d542a487ce02e9aed6177df (patch) | |
| tree | 08460a7cf5f4020b88c37d00de5338fc1a9c034b /lua/telescope/pickers.lua | |
| parent | e2907fc0f225a7bf33ace6915bc6b55ed1e10b31 (diff) | |
fix: add check for nil win_id in Picker.close_windows (#831)
This probably fixes issues with nobuflisted buffers (startify, dashboard-nvim and probably more)
Diffstat (limited to 'lua/telescope/pickers.lua')
| -rw-r--r-- | lua/telescope/pickers.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/telescope/pickers.lua b/lua/telescope/pickers.lua index aceea8b..60d3802 100644 --- a/lua/telescope/pickers.lua +++ b/lua/telescope/pickers.lua @@ -502,7 +502,7 @@ function Picker.close_windows(status) local preview_border_win = status.preview_border_win local function del_win(name, win_id, force, bdelete) - if not vim.api.nvim_win_is_valid(win_id) then + if win_id == nil or not vim.api.nvim_win_is_valid(win_id) then return end |
