zsh-workers
 help / Atom feed
* Completion menu options disappear on zle-reset-prompt
@ 2019-03-14 10:40 Roman Perepelitsa
  2019-03-16 11:58 ` Roman Perepelitsa
  0 siblings, 1 reply; 2+ messages in thread
From: Roman Perepelitsa @ 2019-03-14 10:40 UTC (permalink / raw)
  To: zsh-workers

[-- Attachment #1.1: Type: text/plain, Size: 759 bytes --]

How to reproduce:

   1. Run zsh -df to get a clean zsh environment.
   2.

   Type the following into the terminal.

    zstyle ':completion:*' menu yes select
    autoload -Uz compinit && compinit

    TRAPALRM() { zle .reset-prompt }
    TMOUT=1

   3. Type ls<tab> and wait for 1 second.

Expected behavior:
[image: image.png]

Actual behavior:
[image: image.png]

If you keep pressing tab, you’ll cycle through all options as usual.
However, when TMOUT triggers, all options other than the selected one
become invisible.

System info:

adam% uname -a
Linux adam 4.15.0-46-generic #49-Ubuntu SMP Wed Feb 6 09:33:07 UTC
2019 x86_64 x86_64 x86_64 GNU/Linux
adam% zsh --version
zsh 5.4.2 (x86_64-ubuntu-linux-gnu)

Roman.

[-- Attachment #1.2: Type: text/html, Size: 5383 bytes --]

[-- Attachment #2: image.png --]
[-- Type: image/png, Size: 9633 bytes --]

[-- Attachment #3: image.png --]
[-- Type: image/png, Size: 2745 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Completion menu options disappear on zle-reset-prompt
  2019-03-14 10:40 Completion menu options disappear on zle-reset-prompt Roman Perepelitsa
@ 2019-03-16 11:58 ` Roman Perepelitsa
  0 siblings, 0 replies; 2+ messages in thread
From: Roman Perepelitsa @ 2019-03-16 11:58 UTC (permalink / raw)
  To: zsh-workers

[-- Attachment #1.1: Type: text/plain, Size: 1181 bytes --]

Completion menu gets wiped out not just on explicit call to zle reset-prompt
but also on implicit prompt refresh. For example, when a background job
completes, all menu options except the selected one disappear. Same thing
when you resize terminal window.

Roman.

On Thu, Mar 14, 2019 at 11:40 AM Roman Perepelitsa <
roman.perepelitsa@gmail.com> wrote:

> How to reproduce:
>
>    1. Run zsh -df to get a clean zsh environment.
>    2.
>
>    Type the following into the terminal.
>
>     zstyle ':completion:*' menu yes select
>     autoload -Uz compinit && compinit
>
>     TRAPALRM() { zle .reset-prompt }
>     TMOUT=1
>
>    3. Type ls<tab> and wait for 1 second.
>
> Expected behavior:
> [image: image.png]
>
> Actual behavior:
> [image: image.png]
>
> If you keep pressing tab, you’ll cycle through all options as usual.
> However, when TMOUT triggers, all options other than the selected one
> become invisible.
>
> System info:
>
> adam% uname -a
> Linux adam 4.15.0-46-generic #49-Ubuntu SMP Wed Feb 6 09:33:07 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
> adam% zsh --version
> zsh 5.4.2 (x86_64-ubuntu-linux-gnu)
>
> Roman.
>

[-- Attachment #1.2: Type: text/html, Size: 6610 bytes --]

[-- Attachment #2: image.png --]
[-- Type: image/png, Size: 9633 bytes --]

[-- Attachment #3: image.png --]
[-- Type: image/png, Size: 2745 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-14 10:40 Completion menu options disappear on zle-reset-prompt Roman Perepelitsa
2019-03-16 11:58 ` Roman Perepelitsa

zsh-workers

Archives are clonable: git clone --mirror http://inbox.vuxu.org/zsh-workers

Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.zsh.workers


AGPL code for this site: git clone https://public-inbox.org/ public-inbox