Skip to content

Commit

Permalink
fix(actions): fixes folding. Fixes #699 (#2726)
Browse files Browse the repository at this point in the history
  • Loading branch information
folke authored Oct 6, 2023
1 parent 8c69f58 commit 205f469
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lua/telescope/actions/set.lua
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,13 @@ action_set.edit = function(prompt_bufnr, command)
end
end

-- HACK: fixes folding: https://github.com/nvim-telescope/telescope.nvim/issues/699
if vim.wo.foldmethod == "expr" then
vim.schedule(function()
vim.opt.foldmethod = "expr"
end)
end

local pos = vim.api.nvim_win_get_cursor(0)
if col == nil then
if row == pos[1] then
Expand Down

0 comments on commit 205f469

Please sign in to comment.