Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [BUG] complist interactive mode overwrites command line
- X-seq: zsh-workers 50422
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Andrea Manenti <andrea.manenti@xxxxxxxxx>
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: [BUG] complist interactive mode overwrites command line
- Date: Fri, 22 Jul 2022 09:32:18 -0700
- Archived-at: <https://zsh.org/workers/50422>
- In-reply-to: <2844417.e9J7NaK4W3@phy-nordri>
- List-id: <zsh-workers.zsh.org>
- References: <8964126.CDJkKcVGEf.ref@phy-nordri> <CAH+w=7Zq-0X1DnSW7vORP5B64PN0pzQ2UX2bDfWk8405YDXfrA@mail.gmail.com> <CAH+w=7ZHtt1g-vRAEsiKZHZ2rYZjQU4vMRqcM0Tq4XrkTqy2Cw@mail.gmail.com> <2844417.e9J7NaK4W3@phy-nordri>
On Mon, Jul 18, 2022 at 6:20 AM Andrea Manenti <andrea.manenti@xxxxxxxxx> wrote:
>
> Great work, thanks! I patched it and it works, albeit with a little detail off:
>
> say I do ([] is the cursor)
>
> ```
> ls fo[] folder1
> <Tab>
> ls fo[] folder1
> folder2 folder3 ...
> <Tab>
> ls folder2/[] folder1
> (so far so good, but if <Tab> again)
> ls folder2/subfolder/[]older2/ folder1
> ```
>
> In other words, the thing that was just autocompleted ("older2/") gets repeated at the end.
I'm not able to reproduce the above with the minimal configuration
from your earlier email. I do get a different odd behavior:
% ls fo[] folder1
% ls fo[] folder1
folder1 folder2 folder3
where "folder1" is selected and the "o" in "fo" at the prompt is
highlighted in boldface. If accept one of the menu choices (e.g.,
press Enter):
% ls folder1/o[] folder1
I haven't figured out where the highlighting is coming from or why
that causes the insertion to occur one character to the left of the
cursor.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author