From da11c155102bded6d4936a0c0aa579e05026cca1 Mon Sep 17 00:00:00 2001 From: alexandre pasmantier Date: Sat, 19 Jul 2025 22:58:03 +0200 Subject: [PATCH] fix(fish): more robust string escaping fixes #653 --- television/utils/shell/completion.fish | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/television/utils/shell/completion.fish b/television/utils/shell/completion.fish index 95ba5b8..e9dbf22 100644 --- a/television/utils/shell/completion.fish +++ b/television/utils/shell/completion.fish @@ -109,9 +109,9 @@ function tv_smart_autocomplete end for i in $result - commandline -it -- $dir(string escape -- $i)' ' + commandline -t -- (string escape -- "$dir$i")' ' # optional, if you want to replace '/home/foo/' with '~/', comment out above and uncomment below - # commandline -it -- (string replace --all $HOME '~' $dir(string escape -- $i))' ' + # commandline -t -- (string replace --all $HOME '~' -- (string escape -- "$dir$i"))' ' end end