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

Re: [BUG] complist interactive mode overwrites command line



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