From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22885 invoked from network); 9 Nov 2007 15:08:40 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00 autolearn=ham version=3.2.3 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 9 Nov 2007 15:08:40 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 59241 invoked from network); 9 Nov 2007 15:08:34 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 9 Nov 2007 15:08:34 -0000 Received: (qmail 28575 invoked by alias); 9 Nov 2007 15:08:31 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 24076 Received: (qmail 28555 invoked from network); 9 Nov 2007 15:08:30 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 9 Nov 2007 15:08:30 -0000 Received: (qmail 58930 invoked from network); 9 Nov 2007 15:08:30 -0000 Received: from el-out-1112.google.com (209.85.162.182) by a.mx.sunsite.dk with SMTP; 9 Nov 2007 15:08:25 -0000 Received: by el-out-1112.google.com with SMTP id y26so197461ele for ; Fri, 09 Nov 2007 07:08:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=n6ZpMlN+fl+wR+8kCuPjRnIsEZEBLVLY4mYpMIAm6L0=; b=FZkw21gecYIxX62x5TWZWazNFoWHaEmhUD8sqPLeSCghUOlFz/7TTzTVY6xDRyqnUtixcp2k1UL9u6J4GjripRAHnhMSV0wOTpM9SHxy8nQAGwaebrc85jem9YXIHEIVqJmgCs6tyIVGVmdGnGa6ggLw6FiI1mg84LppoD2asi0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=HqiZQnWxkKNOfVGVlLgpfLDAwvPtnEaTg27zy3EytXGWP2Qofe9PbEF2TLIYZO9o/qooewrVyvwTQBHgK8O/oSZak5g4/VFzcSU/IXGEFYsFZEUvQX5fY5RwnddLmxD3AhV4znacFuMg9qF2dPwcXkPx/uTqLfxezsN+S7HPZEs= Received: by 10.142.79.15 with SMTP id c15mr689426wfb.1194620903043; Fri, 09 Nov 2007 07:08:23 -0800 (PST) Received: by 10.142.86.21 with HTTP; Fri, 9 Nov 2007 07:08:23 -0800 (PST) Message-ID: <237967ef0711090708y4c6da8dfmc14127ed8a357233@mail.gmail.com> Date: Fri, 9 Nov 2007 16:08:23 +0100 From: "Mikael Magnusson" To: zsh-workers Subject: delete-whole-word-match fails on words starting with -, patch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- isn't documented in the manual for the zle builtin, but seems to do the trick anyway. diff --git a/Functions/Zle/delete-whole-word-match b/Functions/Zle/delete-whole-word-match index 978b95e..51314cf 100644 --- a/Functions/Zle/delete-whole-word-match +++ b/Functions/Zle/delete-whole-word-match @@ -49,7 +49,7 @@ if [[ $WIDGET = *kill* ]]; then if [[ $LASTWIDGET = *kill* ]]; then CUTBUFFER="$CUTBUFFER$word" else - zle copy-region-as-kill "$word" + zle copy-region-as-kill -- "$word" fi fi BUFFER="${BUFFER[1,pos1]}${BUFFER[pos2,-1]}" -- Mikael Magnusson