marlonrichert / zsh-autocomplete

🤖 Real-time type-ahead completion for Zsh. Asynchronous find-as-you-type autocompletion.
MIT License
5.39k stars 149 forks source link

Cursor Blinking to New Line on Suggestions #696

Open hye-kim opened 8 months ago

hye-kim commented 8 months ago

Environment

% typeset -p1 VENDOR OSTYPE ZSH_PATCHLEVEL _autocomplete__funcfiletrace
typeset VENDOR=ubuntu
typeset OSTYPE=linux-gnu
typeset ZSH_PATCHLEVEL=ubuntu/5.8.1-1
typeset -a _autocomplete__funcfiletrace=(
  /home/hye/.oh-my-zsh/custom/plugins/zsh-autocomplete/zsh-autocomplete.plugin.zsh:4
  /home/hye/.oh-my-zsh/oh-my-zsh.sh:179
  /home/hye/.oh-my-zsh/oh-my-zsh.sh:208
  /home/hye/.zshrc:82
  zsh:0
)
% git -C ~autocomplete log --oneline -n1
c7b6550 (HEAD -> main, origin/main, origin/HEAD) Add instructions on how to insert longest common prefix

I'm assuming there's something wrong with my machine, but the cursor seems blink out of place rapidly with any new character input until no suggestions are found. I'm using oh-my-zsh on WSL 2. I've tried using just zsh-autocomplete without any other plugins, and have tried other themes, but still getting the same bug. This doesn't happen on my other machine, so I'm not sure what the problem could be.

https://github.com/marlonrichert/zsh-autocomplete/assets/61486500/095f1451-de1b-4857-b321-5714525b2ecc

michaeldebetaz commented 8 months ago

Same issue here with the Windows Terminal in WSL (Ubuntu 20.04.6 LTS).

beracira commented 7 months ago

I believe this happens with linux terminals as well, but not to the same degree.

emilnymann commented 6 months ago

Having the same issue with Ubuntu 24.04 and zsh 5.9 through Windows Terminal. It's purely cosmetic but extremely distracting.

emilnymann commented 6 months ago

I switched from Windows Terminal to WezTerm and the issue is gone. Overall the visual experience is a lot smoother actually. The root of this issue seems to be with hos Windows Terminal (and possible other terminal emulators) handle redrawing, because the visual experience is also hugely improved in other terminals applications like Neovim.