Skip to content

Commit

Permalink
Handle case when completion starts with a space
Browse files Browse the repository at this point in the history
Fixes #1303

Signed-off-by: Marc Khouzam <marc.khouzam@montreal.ca>
  • Loading branch information
marckhouzam committed Jan 3, 2021
1 parent 414ea20 commit 7cde67e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fish_completions.go
Expand Up @@ -30,7 +30,7 @@ end
function __%[1]s_perform_completion
__%[1]s_debug "Starting __%[1]s_perform_completion"
set args (string split -- " " (commandline -c))
set args (string split -- " " (string trim -l (commandline -c)))
set lastArg "$args[-1]"
__%[1]s_debug "args: $args"
Expand Down

0 comments on commit 7cde67e

Please sign in to comment.