Skip to content

Commit

Permalink
fix: can't delete worktree using c-d
Browse files Browse the repository at this point in the history
  • Loading branch information
morland96 authored and polarmutex committed Aug 7, 2024
1 parent 9b5136b commit 604ab2d
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 @@ -7,6 +7,7 @@ local action_set = require('telescope.actions.set')
local action_state = require('telescope.actions.state')
local conf = require('telescope.config').values
local git_worktree = require('git-worktree')
local Config = require('git-worktree.config')

local force_next_deletion = false

Expand Down Expand Up @@ -70,7 +71,7 @@ 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
if not Config.confirm_telescope_deletions then
return true
end

Expand Down

0 comments on commit 604ab2d

Please sign in to comment.