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

Interactive menu completion bug



This is unrelated to the previous bug I mentioned, and apologies if this
has been brought forward before. There is a more problematic issue with
the menu when in the `interactive` setting.

    zmodload zsh/complist
    setopt MENU_COMPLETE
    zstyle ':completion:*:default' menu yes select interactive
    autoload -Uz compinit
    compinit

    # for demo purposes:
    touch ~/a{b,c}

The following and similar inputs show issues [1]:

    echo $a<Tab>liases[<arrow-right> 

    echo ~/a<Tab>b <Tab><arrow-right>

The user finishes the token/word themselves instead of accepting one of
the menu's completions. The completer doesn't update the location to
insert the new completion. Instead, the new completion is inserted at
the original location rather than where it should be.

[1]: Demo: https://asciinema.org/a/dZXOf1HGc5zj8AWJ4Ea3lBiGr




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