Skip to content

Commit

Permalink
Revert "fix(picker): actually set prompt win to text wrap (#2930)" (#…
Browse files Browse the repository at this point in the history
…2967)

This reverts commit 52190bd.
  • Loading branch information
jamestrew authored Mar 4, 2024
1 parent 13c1436 commit dc1ea28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/telescope/pickers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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()

Expand Down

0 comments on commit dc1ea28

Please sign in to comment.