Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
delete-whole-word-match fails on words starting with -, patch
- X-seq: zsh-workers 24076
- From: "Mikael Magnusson" <mikachu@xxxxxxxxx>
- To: zsh-workers <zsh-workers@xxxxxxxxxx>
- Subject: delete-whole-word-match fails on words starting with -, patch
- Date: Fri, 9 Nov 2007 16:08:23 +0100
- 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=
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
-- 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author