From dc1ea28cc2a02cd1cebb9d80e967807d668f78f8 Mon Sep 17 00:00:00 2001 From: James Trew <66286082+jamestrew@users.noreply.github.com> Date: Mon, 4 Mar 2024 00:59:31 -0500 Subject: [PATCH] Revert "fix(picker): actually set prompt win to text wrap (#2930)" (#2967) This reverts commit 52190bd8f91bf8e0b1b04869f81b17cfbf6f3972. --- lua/telescope/pickers.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/telescope/pickers.lua b/lua/telescope/pickers.lua index 160b744..6d31e7a 100644 --- a/lua/telescope/pickers.lua +++ b/lua/telescope/pickers.lua @@ -553,6 +553,7 @@ function Picker:find() pcall(a.nvim_buf_set_option, self.prompt_bufnr, "tabstop", 1) -- #1834 a.nvim_buf_set_option(self.prompt_bufnr, "buftype", "prompt") a.nvim_win_set_option(self.results_win, "wrap", self.wrap_results) + a.nvim_win_set_option(self.prompt_win, "wrap", true) if self.preview_win then a.nvim_win_set_option(self.preview_win, "wrap", true) end @@ -606,7 +607,6 @@ function Picker:find() -- Do filetype last, so that users can register at the last second. pcall(a.nvim_buf_set_option, self.prompt_bufnr, "filetype", "TelescopePrompt") pcall(a.nvim_buf_set_option, self.results_bufnr, "filetype", "TelescopeResults") - a.nvim_win_set_option(self.prompt_win, "wrap", true) await_schedule()