Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

_path_files: fix copy paste error



Signed-off-by: Takeshi Banse <thb@xxxxxxxxx>
---

I'm very sorry! I fixed the copy paste error in the previous patch.

 Completion/Unix/Type/_path_files | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Completion/Unix/Type/_path_files b/Completion/Unix/Type/_path_files
index 8fbc21ffa..6a869defa 100644
--- a/Completion/Unix/Type/_path_files
+++ b/Completion/Unix/Type/_path_files
@@ -274,7 +274,7 @@ if [[ "$pre" = [^][*?#^\|\<\>\\]#(\`[^\`]#\`|\$)*/* && "$compstate[quote]" != \'
   orig="${orig[1,(in:i:)/][1,-2]}"
   donepath=
   prepaths=( '' )
-elif [[ "$pre" = \~\[* && "$compstate[quote]" = (|\`) ]]; then
+elif [[ "$pre" = \~\[* && "$compstate[quote]" = (|\`) ]] &&
   (($+functions[zsh_directory_name] || $+zsh_directory_name_functions)) &&
   () {
     # It begins with `~[', so the characters from `$pre[3]' to before the
-- 
2.16.1



Messages sorted by: Reverse Date, Date, Thread, Author