Skip to content

Commit

Permalink
fix: potential workaround for upstream <C-c> bug (#1091)
Browse files Browse the repository at this point in the history
  • Loading branch information
ibhagwan committed Mar 21, 2024
1 parent 661087b commit 1df84a4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lua/fzf-lua/win.lua
Original file line number Diff line number Diff line change
Expand Up @@ -873,6 +873,10 @@ function FzfWin:create()

self:reset_win_highlights(self.fzf_winid)

-- potential workarond for `<C-c>` freezing neovim (#1091)
-- https://github.com/neovim/neovim/issues/20726
vim.wo[self.fzf_winid].foldmethod = "manual"

if self.winopts.on_create and
type(self.winopts.on_create) == "function" then
self.winopts.on_create()
Expand Down

0 comments on commit 1df84a4

Please sign in to comment.