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

Re: vim completion problem after workers/35168



On Mon, 18 May 2015 14:22:20 +0300
İsmail Dönmez <ismail@xxxxxxxxx> wrote:
> Unfortunately even after 35184 I get an error:
> 
> _vim:7: parse error near `)'
> 
> yeah this time its the right parentheses :)

A slightly closer examination reveals the following...

Yet another annoyance: in the old hack, you got away with having a
pattern beginning with "(" (and containing balanced parentheses)
followed by an unbalanced ")".  Now you don't.  I don't think that's
actually *that* unfair, and looking at the context below it was clearly
just a mistake in this case.

pws

diff --git a/Completion/Unix/Command/_vim b/Completion/Unix/Command/_vim
index 021054d..007671b 100644
--- a/Completion/Unix/Command/_vim
+++ b/Completion/Unix/Command/_vim
@@ -4,7 +4,7 @@
 _vim_files () {
   case $PREFIX in
     (+*) _files -P './' $* && return 0 ;;
-    (scp|http(|s)|(|s)ftp):*) _urls ;;
+    ((scp|http(|s)|(|s)ftp):*) _urls ;;
     (*) _files $* ;;
   esac
   case $PREFIX in



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