fix(picker): correctly apply wrap_results option (#2840)

Co-authored-by: sultanm <sultanm@sultanms-MacBook-Pro.local>
This commit is contained in:
Sultanahamer
2024-01-03 19:33:36 +05:30
committed by GitHub
parent 3466159b0f
commit 983460fb8c

View File

@@ -547,9 +547,7 @@ function Picker:find()
pcall(a.nvim_buf_set_option, self.results_bufnr, "tabstop", 1) -- #1834
pcall(a.nvim_buf_set_option, self.prompt_bufnr, "tabstop", 1) -- #1834
a.nvim_buf_set_option(self.prompt_bufnr, "buftype", "prompt")
if not self.wrap_results then
a.nvim_win_set_option(self.results_win, "wrap", false)
end
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)