diff options
| author | Senghan Bright <senghan.bright@deltaprojects.com> | 2020-12-16 21:36:50 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-16 21:36:50 +0100 |
| commit | 205790285b3e4e933ab85eee62b1b515243a40bc (patch) | |
| tree | ea524d115d19dc7dfa85ce9c3f45a95dda1ea6ef /lua | |
| parent | af8d990c2cc19577f9503fae29c59d256e304bee (diff) | |
fix: don't error when no hidden buffers are available (#341)
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/telescope/builtin/internal.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lua/telescope/builtin/internal.lua b/lua/telescope/builtin/internal.lua index 00868bb..7329a50 100644 --- a/lua/telescope/builtin/internal.lua +++ b/lua/telescope/builtin/internal.lua @@ -437,6 +437,7 @@ internal.buffers = function(opts) or vim.api.nvim_buf_is_loaded(b)) and 1 == vim.fn.buflisted(b) end, vim.api.nvim_list_bufs()) + if not next(bufnrs) then return end local buffers = {} local default_selection_idx = 1 |
