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

Re: [PATCH] accept-line: add ZLE_KEEPSUFFIX to preserve completion suffixes



On Sat, Apr 4, 2026 at 12:45 AM Dimitry Grebenyuk
<dimitrygrebenyuk@xxxxxxxxxx> wrote:
>
> Subject: [PATCH] accept-line: add ZLE_KEEPSUFFIX to preserve completion
>  suffixes

No, that's definitely wrong.  The whole point of removable suffixes is
that they get removed.

> When a completion adds a removable suffix (e.g. '/' after a directory
> name), the accept-line widget removes it before execution because it
> lacks the ZLE_KEEPSUFFIX flag. This causes a mismatch between what is
> displayed on screen and what is actually executed.

If you're seeing this, something else is going wrong.  The suffix
should be removed from the visible screen as well.




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