Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: fix complist interactive mode overwriting buffer



On Sun, May 24, 2026 at 7:45 AM Mikael Magnusson <mikachu@xxxxxxxxx> 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".




Messages sorted by: Reverse Date, Date, Thread, Author