From: Mikael Magnusson <mikachu@gmail.com>
To: Karsten Borgwaldt <kb@spambri.de>
Cc: zsh-workers@zsh.org
Subject: Re: Patch: Zle edit-command-line does not work with setopt GLOB_SUBST
Date: Tue, 18 Dec 2018 21:34:37 +0100 [thread overview]
Message-ID: <CAHYJk3RSckpfDcFmucVjdehkCPLS9K5hTTp4jB5i-i9ac+3AWA@mail.gmail.com> (raw)
In-Reply-To: <3175230.M9Xzj6aNrv@thor>
On 12/18/18, Karsten Borgwaldt <kb@spambri.de> wrote:
> Dear developers,
>
> with "setopt GLOB_SUBST" the widget edit-command-line just prints an error
> and
> exits on my systems. Adding "noglob" to the function fixes it.
>
> Tested environment:
> Debian stretch with zsh 5.3.1 (x86_64-debian-linux-gnu)
> Terminals:
> * Konsole 16.12.0 (TERM=xterm-256color)
> * XTerm(327) (TERM=xterm)
>
> With both terminals the value of zle_bracketed_paste was
> ( $'\e[?2004h' $'\e[?2004l' )
>
> Steps to reproduce:
> # env -i TERM=$TERM zsh -f
> # setopt glob_subst
> # autoload -U edit-command-line
> # edit-command-line
> (anon):6: bad pattern: ^[[?2004l
>
> Proposed fix is attached.
>
> Feel free to ask me for additional information.
You could use
emulate zsh -c 'autoload edit-command-line'
but the correct fix is to say 'emulate -L zsh' at the top of the
function itself.
--
Mikael Magnusson
prev parent reply other threads:[~2018-12-18 20:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-18 17:42 Karsten Borgwaldt
2018-12-18 20:34 ` Mikael Magnusson [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAHYJk3RSckpfDcFmucVjdehkCPLS9K5hTTp4jB5i-i9ac+3AWA@mail.gmail.com \
--to=mikachu@gmail.com \
--cc=kb@spambri.de \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).