From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5503 invoked by alias); 18 May 2015 11:40:46 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 35187 Received: (qmail 24010 invoked from network); 18 May 2015 11:40:45 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS autolearn=ham autolearn_force=no version=3.4.0 X-AuditID: cbfec7f4-f79c56d0000012ee-36-5559cfb9cf44 Date: Mon, 18 May 2015 12:40:39 +0100 From: Peter Stephenson To: Zsh Hackers' List Subject: Re: vim completion problem after workers/35168 Message-id: <20150518124039.0160a3bb@pwslap01u.europe.root.pri> In-reply-to: References: <20150518115301.0c80918d@pwslap01u.europe.root.pri> Organization: Samsung Cambridge Solution Centre X-Mailer: Claws Mail 3.7.9 (GTK+ 2.22.0; i386-redhat-linux-gnu) MIME-version: 1.0 Content-type: text/plain; charset=UTF-8 Content-transfer-encoding: quoted-printable X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrELMWRmVeSWpSXmKPExsVy+t/xq7o7z0eGGjy7YmNxsPkhkwOjx6qD H5gCGKO4bFJSczLLUov07RK4MtY9f8ZY8J29Yt77+WwNjKvYuhg5OSQETCQuft3JDGGLSVy4 tx4ozsUhJLCUUWLFix2sIAkhgRlMEmfmikEktjFKfLh1GizBIqAqcXfSVjCbTcBQYuqm2Yxd jBwcIgLaEu0fxUDCwgLmEivPzmIBsXkF7CWO7J/KCGJzCgRLNN/bxwYx/zyjxM27ZiA2v4C+ xNW/n5ggDrKXmHnlDCNEr6DEj8n3wOYwC6hLTJq3iBnC1pZ48u4C1J3qEjfu7mafwCg0C0nL LCQts5C0LGBkXsUomlqaXFCclJ5rqFecmFtcmpeul5yfu4kRErJfdjAuPmZ1iFGAg1GJh5cj IjJUiDWxrLgy9xCjBAezkgjv9n1AId6UxMqq1KL8+KLSnNTiQ4zSHCxK4rxzd70PERJITyxJ zU5NLUgtgskycXBKNTBqp274M7dwd1Op3bpVez3PNU+8Guh49f/MVt9byh5tjz0acuuv3df3 v3/wnK/xxAlbTZfdTd67rzqy8WD+OU8pc8cbyzu0HhUe47RM9xPKnpnyiTHy2kKb/aVbVtcs vLnmTkNh8alrG4tef1dxv7Nij8SdzfFJ3gXBYpPEwwxsPym1ad3TZJNWYinOSDTUYi4qTgQA 8pQJT1UCAAA= On Mon, 18 May 2015 14:22:20 +0300 =C4=B0smail D=C3=B6nmez wrote: > Unfortunately even after 35184 I get an error: >=20 > _vim:7: parse error near `)' >=20 > 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