Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug in bracketed-paste-magic?
- X-seq: zsh-workers 37971
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: Bug in bracketed-paste-magic?
- Date: Sun, 14 Feb 2016 11:29:55 -0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version:content-type; bh=fP4cSRDWszZlmm1kFgw8tqEq5LvB5FcTJkbjRR4wyiw=; b=TcHSVLWFPnEu57R5xaqaWO+Lh20xj2rgkObFO8Ot1CGTqBap49AJW4lW6s6yFqu0dY UztMSlTv9uRwUmuZ1uR8BTy8y9vvOStq99BzgUpivfYA0vkdsemiidGQP5Y+qQIjgrtG EuB8Hrd7UAuoF7umxML+BMayDSwBQX5VhLhAnf9Y1P+CePn8Frmey5hBQZxjylznidBx WatvQub8Mp0c177BE74FrzRXwhkUEMp5x1cC18zLPCv+MKfLW3TinaL1wJ9y94JormgM 7kLBVMl22SnfjsouXHHA5G7SV+eZwYxlf+DGa6KkLslq/Ni6RCRV2MPgG/tYualMgcAk NRyQ==
- In-reply-to: <CAAikoAKuKmgf5Ru19BLLuS=fO74f1kKL+d8_OPFA0T-F8=QpfA@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CAAikoAKuKmgf5Ru19BLLuS=fO74f1kKL+d8_OPFA0T-F8=QpfA@mail.gmail.com>
On Feb 13, 8:42pm, Eric Freese wrote:
}
} making a call to `zle` without the `-w` flag. It seems to me this is a bug
Just for zsh-workers reference, here is the patch:
diff --git a/Functions/Zle/bracketed-paste-magic
b/Functions/Zle/bracketed-paste-magic
index 2b2bc63..498cf55 100644
--- a/Functions/Zle/bracketed-paste-magic
+++ b/Functions/Zle/bracketed-paste-magic
@@ -175,7 +175,7 @@ bracketed-paste-magic() {
case $REPLY in
(${~bpm_active}) function () {
emulate -L $bpm_emulate; set -$bpm_opts
- zle $REPLY
+ zle $REPLY -w
};;
(*) zle .self-insert;;
esac
@@ -184,7 +184,7 @@ bracketed-paste-magic() {
PASTED=$BUFFER
# Reset the undo state
- zle undo $bpm_undo
+ zle .undo $bpm_undo
UNDO_LIMIT_NO=$bpm_limit
zle -K $bpm_keymap
Messages sorted by:
Reverse Date,
Date,
Thread,
Author