Skip to content

Commit

Permalink
fix: use proper config in confirm_deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
rbmarliere committed Jul 20, 2024
1 parent 126288d commit 5f92e78
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/telescope/_extensions/git_worktree.lua
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ end
-- @param forcing boolean: whether the deletion is forced
-- @return boolean: whether the deletion is confirmed
local confirm_deletion = function(forcing)
if not git_worktree._config.confirm_telescope_deletions then
local config = require('git-worktree.config')
if not config.confirm_telescope_deletions then
return true
end

Expand Down

0 comments on commit 5f92e78

Please sign in to comment.