From 38765f68db37a8fd9769db9cb54a5508658e9a5c Mon Sep 17 00:00:00 2001 From: TJ DeVries Date: Wed, 28 Apr 2021 10:38:24 -0400 Subject: fix: Fix things for conni --- lua/telescope/pickers.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lua') 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() -- cgit v1.2.3