Fix: early out with non-file arguments in checkout file

This commit is contained in:
sandroid 2025-07-15 21:02:28 +02:00
parent fd373ba6c2
commit 19bd42366c
No known key found for this signature in database
GPG key ID: 91418C9982B8B76E

View file

@ -841,7 +841,7 @@ _forgit_git_checkout_file() {
_forgit_checkout_file() {
_forgit_inside_work_tree || return 1
local files opts
_forgit_contains_non_flags "$@" && { _forgit_git_checkout_file -- "$@"; return $?; }
_forgit_contains_non_flags "$@" && { _forgit_git_checkout_file "$@"; return $?; }
opts="
$FORGIT_FZF_DEFAULT_OPTS
-m -0