Skip to content

Commit 96cecb5

Browse files
committed
fix fish completions with words containing -f
1 parent c9ebc97 commit 96cecb5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/completions.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,10 @@ export extern "just" [
9494
]"#;
9595

9696
const FISH_RECIPE_COMPLETIONS: &str = r#"function __fish_just_complete_recipes
97-
if string match -rq '(-f|--justfile)\s*=?(?<justfile>[^\s]+)' -- (string split -- ' -- ' (commandline -pc))[1]
98-
set -fx JUST_JUSTFILE "$justfile"
99-
end
100-
printf "%s\n" (string split " " (just --summary))
97+
if string match -rq '\s(-f|--justfile)\s*=?(?<justfile>[^\s]+)' -- (string split -- ' -- ' (commandline -pc))[1]
98+
set -fx JUST_JUSTFILE "$justfile"
99+
end
100+
printf "%s\n" (string split " " (just --summary))
101101
end
102102
103103
# don't suggest files right off

0 commit comments

Comments
 (0)