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

Re: [BUG] complist interactive mode overwrites command line



On Mon, Mar 4, 2024 at 3:30 AM Samy Dulor <samy.dulor@xxxxxxxxx> wrote:
>
> However, is it not another bug that the one that concerned me in the
> first place?

It all comes back to approximately the same thing:  Interactive
completion has "forgotten" where its input position is and how much it
inserted to the right of that.

> So, trying your test case on the clean Arch repo's zsh package,
> I noticed that if you don't press <TAB> on step 3., pressing the arrow
> will give you this:
> % ls Src/
>
> Is it really the expected behavior?

No, it isn't.

> Would it not be better if it left
> you with:
> % ls autom4te.cache config Src/

That is what's wanted, yes.

> Also, back at my initial issue and my patch, I noticed I made an
> assumption that might be wrong about the expected behavior:
>
> Marlon's test case from the 2021 thread was:
>
> > % touch test{1,2}
> > % : ; foobar
> >      ^ 1. Type the above line in its entirety.
> >        2. Place the cursor before the ;
> >        3. Press Tab.
> >        4. Press Enter.
> > % : test1 bar
> >      ^ Completion is written over existing buffer contents.
>
> In that case, should the ';' still be present?
> ie. % : test1; foobar

I believe so, yes.




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