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

Re: completion at beginning of line



On Jun 18,  6:33pm, Tanaka Akira wrote:
} Subject: completion at beginning of line
}
} _main_complete:52: command not found: no
} 
} Hm.  Why?

Sven typo in 11873.


Index: Completion/Core/_main_complete
===================================================================
@@ -49,7 +49,7 @@
 fi
 
 if [[ "$compstate[insert]" = tab* ]]; then
-  { "$tmp" = (|[[:blank:]]*)(yes|true|on|1)(|[[:blank:]]*) &&
+  { [[ "$tmp" = (|[[:blank:]]*)(yes|true|on|1)(|[[:blank:]]*) ]] &&
     { [[ "$curcontext" != :* || -z "$compstate[vared]" ]] ||
         zstyle -t ":completion:vared${curcontext}:" insert-tab } } && return 0
 

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   



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