Skip to content

Commit 4d0f5e0

Browse files
authored
fix(actions): force recomputing folds using zX (#3595)
This is a small modification of #2726 where instead of changing the global options, it simply reloads the folds engine.
1 parent e709d31 commit 4d0f5e0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lua/telescope/actions/set.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ action_set.edit = function(prompt_bufnr, command)
204204
-- HACK: fixes folding: https://github.com/nvim-telescope/telescope.nvim/issues/699
205205
if vim.wo.foldmethod == "expr" then
206206
vim.schedule(function()
207-
vim.opt.foldmethod = "expr"
207+
vim.cmd "normal! zX"
208208
end)
209209
end
210210

0 commit comments

Comments
 (0)