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

PATCH: add correct number of slashes to iconv's //translit



---
 Completion/Unix/Command/_iconv |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Completion/Unix/Command/_iconv b/Completion/Unix/Command/_iconv
index 2cd69b2..75fe521 100644
--- a/Completion/Unix/Command/_iconv
+++ b/Completion/Unix/Command/_iconv
@@ -21,7 +21,7 @@ if _pick_variant gnu=GNU unix --version; then
     '1:input file:_files' && return 0
 
   if [[ $state = codeset ]]; then
-    if compset -P '*/'; then
+    if compset -P '*[^/]/'; then
       _wanted option expl option compadd "$@" /TRANSLIT && ret=0
     else
       _wanted codesets expl 'code set' compadd "$@" \
-- 
1.7.5.4



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