Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Staring a word with multiple forward slashes in msys2 in windows is causing slowdown of terminal #961

Open
AnonymousYoda opened this issue Nov 16, 2024 · 1 comment

Comments

@AnonymousYoda
Copy link

AnonymousYoda commented Nov 16, 2024

Like while using "ml //help", as soon as i type h the terminal slows down and it takes a while till complete word is displayed

@helmesjo
Copy link

helmesjo commented Dec 6, 2024

For me it freezes, but so far I've only been able to replicate it when run under alacritty + Msys2.

Reproduce:

  1. Setup.
$ winget install Alacritty
$ winget install MSYS2.MSYS2
# Start "MSYS2 UCRT64" terminal
$ pacman install git zsh
$ mkdir ~/.zsh
$ git clone https://github.com/zsh-users/zsh-syntax-highlighting ~/.zsh/zsh-syntax-highlighting
  1. Run the following command to start alacritty with msys2 & zsh:
alacritty.exe --command "C:/msys64/msys2_shell.cmd -ucrt64 -defterm -here -no-start -use-full-path -shell zsh"
  1. Clone & source syntax-highlighting
git clone 
source ~/.zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
# then try double forward slash (if you're quick you'll get some extra
# characters in, suggesting this is happening in some async part):
cd //qwd # it's now frozen

Edit
Actually, when making this reproducer I noticed that it also happens without alacritty as well.

helmesjo added a commit to helmesjo/dotfiles that referenced this issue Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants