Re: PATCH: fix complist interactive mode overwriting buffer

Bart Schaefer <[email protected]>
Newsgroups gmane.comp.shells.zsh.devel
Message-ID <CAH+w=7bFptqx_zeDa-aqTJ7TYkHef4CCVurRRBAXo=w_w1s02g@mail.gmail.com>
On Sun, May 24, 2026 at 7:45 AM Mikael Magnusson <[email protected]> wrote:
>
> Dana was talking about completing quoted words and I realized I hadn't
> tried that at all, and it indeed doesn't work well very well.

I'll be really pleased if these two small changes are all that's
needed for that.  Quoted word completion has been a thorn for a long
time.  One of the issues (which I'm not sure this addresses) is that,
within some completer functions and perhaps also some internal
comparisons, get_comp_string() [?] has normalized the quoting so
(obviously invented example) the completion for {{'one two}} (unclosed
single quote) ends up testing {{one\ two}} vs. {{'one two'}} or
something like that.

> This is probably becoming a pain to try to apply manually, so I'll
> attach the combined patch for anyone looking to try it out, although
> at this point maybe I should just push?

I'm inclined toward the "just push".
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.