Skip to content

Commit 840c3c9

Browse files
committed
fish_completer: escape all singlequotes
make sure all single quotes are escaped, earlier completion can fail when there are multiple singlequotes fixup 670b230
1 parent 62cb829 commit 840c3c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cookbook/external_completers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ This completer will use [the fish shell](https://fishshell.com/) to handle compl
2020

2121
```nu
2222
let fish_completer = {|spans|
23-
fish --command $"complete '--do-complete=($spans | str replace "'" "\\'" | str join ' ')'"
23+
fish --command $"complete '--do-complete=($spans | str replace --all "'" "\\'" | str join ' ')'"
2424
| from tsv --flexible --noheaders --no-infer
2525
| rename value description
2626
| update value {

0 commit comments

Comments
 (0)