Skip to content

Commit d6080b2

Browse files
authored
fix pwd escape error (#3)
* apply IlanCosman#533 * fix pwd escape error
1 parent 9fbacf6 commit d6080b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

functions/_tide_pwd.fish

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ eval "function _tide_pwd
2828
string match -qr \"(?<trunc>\..|.)\" \$dir_section
2929
3030
set -l glob \$parent_dir/\$trunc*/
31-
set -l indices (contains -i $parent_dir/$dir_section/ $glob)
31+
set -l indices (contains -i \$parent_dir/\$dir_section/ \$glob)
3232
if set -q indices[1]
33-
set -e glob[$indices]
33+
set -e glob[\$indices]
3434
end
3535
while string match -qr \"^\$parent_dir/\$(string escape --style=regex \$trunc)\" \$glob &&
3636
string match -qr \"(?<trunc>\$(string escape --style=regex \$trunc).)\" \$dir_section

0 commit comments

Comments
 (0)