Skip to content

Commit

Permalink
Check cmd_word instead of __fzf_extract_command
Browse files Browse the repository at this point in the history
  • Loading branch information
hexium310 committed Nov 19, 2024
1 parent 781b43b commit ddd3500
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/parser.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ _fzf_complete_get_command_pos() {
local cmd
local arguments=("${(Q)${(z)@}[@]}")

if [[ "$(which __fzf_extract_command)" == *compstate* ]]; then
if [[ -n $cmd_word ]]; then
cmd=$cmd_word
else
cmd=$(__fzf_extract_command "$@")
Expand Down

0 comments on commit ddd3500

Please sign in to comment.