diff options
| author | fdschmidt93 <39233597+fdschmidt93@users.noreply.github.com> | 2022-05-12 08:39:19 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-12 08:39:19 +0200 |
| commit | 39b12d84e86f5054e2ed98829b367598ae53ab41 (patch) | |
| tree | e6835b4125b44214d5d08decb6a4198bf66bf0bb /lua | |
| parent | 795a63ed293ba249a588e9e67aa1f2cec82028e8 (diff) | |
feat(entry_display): expose prompt_bufnr opt (#1934)
Required for `vim.ui.input` with file_browser extension
when prompt_bufnr may be left intermittently
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/telescope/pickers/entry_display.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/telescope/pickers/entry_display.lua b/lua/telescope/pickers/entry_display.lua index 937d75e..b1a1473 100644 --- a/lua/telescope/pickers/entry_display.lua +++ b/lua/telescope/pickers/entry_display.lua @@ -13,7 +13,7 @@ entry_display.create = function(configuration) local width table.insert(generator, function(item) if width == nil then - local status = state.get_status(vim.api.nvim_get_current_buf()) + local status = state.get_status(vim.F.if_nil(configuration.prompt_bufnr, vim.api.nvim_get_current_buf())) local s = {} s[1] = vim.api.nvim_win_get_width(status.results_win) - #status.picker.selection_caret s[2] = vim.api.nvim_win_get_height(status.results_win) |
