romkatv / zsh-defer

Deferred execution of Zsh commands
GNU General Public License v3.0
356 stars 11 forks source link

Multiple empty prompt lines under tmux? #9

Closed tmpm697 closed 2 years ago

tmpm697 commented 2 years ago

Tmux version

tmux -V
tmux next-3.4

Power10k latest version till commit hash: 0b02654

Terminal:

alacritty --version
alacritty 0.10.1 (2844606d)

If I load zsh-autosuggestions.zsh: source ./plugins/zsh-autosuggestions/zsh-autosuggestions.zsh, there're no multiple empty prompt lines.

But if I do zsh-defer source ./plugins/zsh-autosuggestions/zsh-autosuggestions.zsh, there'll multiple empty prompt lines after issued commands, number of empty lines is arbitrary like below:

my10kprompt%
my10kprompt%
my10kprompt%
my10kprompt%
my10kprompt%
my10kprompt%
my10kprompt%
my10kprompt% diff -u test1 test2
<..>

I scroll up tmux or alacritty to check those empty lines.

romkatv commented 2 years ago

Thanks for reporting this.

I won't be debugging this as I'm short on free time. If you find out the reason, please post an update.

tmpm697 commented 2 years ago

This issue happens with every zsh-defer lines that I have in .zshrc and other files, meaning when you have 1/2 zsh-defer in .zshrc, start alacritty or tmux and immediatelly scroll up, empty prompt lines will appear.

tmpm697 commented 2 years ago

It seems I can only produce this issue with tmux with the same zsh setup as alacritty.

romkatv commented 2 years ago

OK. I'm still not going to debug this. Sorry.

tmpm697 commented 2 years ago

I think this dues to tmux, tried current 3.2a official and -git on arch, both keep have empty prompt lines when start tmux and did a scroll up. Not observe this issue on alacritty.

I did try tmux -f /dev/null and the issue still happens, so blame tmux but what the issue, idk.

tmpm697 commented 2 years ago

Check this