diff options
| author | TJ DeVries <devries.timothyj@gmail.com> | 2021-04-28 10:38:24 -0400 |
|---|---|---|
| committer | TJ DeVries <devries.timothyj@gmail.com> | 2021-04-28 10:38:24 -0400 |
| commit | 38765f68db37a8fd9769db9cb54a5508658e9a5c (patch) | |
| tree | 21f6fae2ef78afd758e5decf49a014808204fac3 /lua/telescope/pickers.lua | |
| parent | 28ae702682ce9874f716a3258d4d1539e71bd161 (diff) | |
fix: Fix things for conni
Diffstat (limited to 'lua/telescope/pickers.lua')
| -rw-r--r-- | lua/telescope/pickers.lua | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lua/telescope/pickers.lua b/lua/telescope/pickers.lua index d23d1b2..aceea8b 100644 --- a/lua/telescope/pickers.lua +++ b/lua/telescope/pickers.lua @@ -1051,10 +1051,9 @@ function pickers.on_close_prompt(prompt_bufnr) picker.close_windows(status) end +--- Get the prompt text without the prompt prefix. function Picker:_get_prompt() - return vim.trim( - vim.api.nvim_buf_get_lines(self.prompt_bufnr, 0, 1, false)[1]:sub(#self.prompt_prefix + 1) - ) + return vim.api.nvim_buf_get_lines(self.prompt_bufnr, 0, 1, false)[1]:sub(#self.prompt_prefix + 1) end function Picker:_reset_highlights() |
