Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Bug in bracketed-paste-magic
- X-seq: zsh-users 21284
- From: Eric Freese <ericdfreese@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Bug in bracketed-paste-magic
- Date: Sat, 13 Feb 2016 17:18:13 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=AWWry391w7cMGUE7x/ccU5wBwdxBHW2WfTqXLZODnbM=; b=YuD2zvbhAUYSFFhKDjBFHoPMjrV9It+dl+8n5iOEhX31vXz+3a+iVH2AKuzxAFuBBW oaadvxV4eyKoTZKm1hVgyotNL55y/EVNDXAgLBnE/iG9MxM3HY+LxxI/fKnuBOZ3wNDA jjkQIGNKUWovlidXtClqGcwxIo+s+sAnMDGBHvmWdrS/x0irg9AXTYrEitNOK/F4Nq3C lSCUfE5wYn3UEWmKHy1equ7Y7TaTlh9KGhDnipiPovYAD8CjAoQpYO2ZsDRr06jYj/Y1 g93G5EPEt3yEzfRnmHupVTb2YM/wQ5s1sZufWTUpl88dOGvnD1G3fY35D87zPumpFPyH oH4Q==
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
Hi,
I'm developing an autosuggest plugin at
https://github.com/tarruda/zsh-autosuggestions and have been looking into
an issue (#102 in that repo) that occurs when bracketed-paste-magic is
enabled. I've tracked it down to the `bracketed-paste-magic` function
making a call to `zle` without the `-w` flag. It seems to me this is a bug
in bracketed-paste-magic- that it should be using the `-w` flag to set
$WIDGET and associated parameters when invoking a possibly user-defined
widget. Would adding the `-w` flag here possibly break anything else?
I'm not very familiar with the best way to get this patched, but I've
forked the repo on GitHub and pushed a commit that adds the `-w` flag. It's
available at
https://github.com/ericfreese/zsh/commit/ff23295570e477a6f4b4c1c1e0f97eddc277bcd9
The relevant github issue for my plugin:
https://github.com/tarruda/zsh-autosuggestions/issues/102
Cheers,
Eric Freese
P.S. Another concern (though it's really a separate issue) is the `zle
undo` later in the file. Shouldn't that be `zle .undo` to avoid any
potential problems arising from the `undo` widget being overridden by a
user-defined widget?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author