Skip to content

Commit

Permalink
feat(git_status): trigger autoread after git reset (closes #1030)
Browse files Browse the repository at this point in the history
  • Loading branch information
ibhagwan committed Feb 6, 2024
1 parent 30d63fe commit 78bd372
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/fzf-lua/actions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -678,6 +678,8 @@ M.git_reset = function(selected, opts)
and path.git_cwd({ "git", "clean", "-f" }, opts)
or path.git_cwd({ "git", "checkout", "HEAD", "--" }, opts)
git_exec({ s }, opts, cmd)
-- trigger autoread or warn the users buffer(s) was changed
vim.cmd.checktime()
end
end

Expand Down

0 comments on commit 78bd372

Please sign in to comment.