zsh-users / zsh-autosuggestions

Fish-like autosuggestions for zsh
MIT License
30.3k stars 1.85k forks source link

free(): invalid pointer after 5 backspaces #745

Open emphyrioio opened 1 year ago

emphyrioio commented 1 year ago

Describe the bug

When I source autosuggestions.zsh and type 5 backspaces, zsh terminates with exit code 1 and the following message: free(): invalid pointer

To Reproduce

Steps to reproduce the behavior:

% zsh -df
%  source .conf/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh

Expected behavior

If deleting 5 characters with a backspace, I get the following result: free(): invalid pointer Aborted

Desktop

Additional context

I have no X11 installed and connecting with SSH (OpenSSH_for_Windows_9.2p1, LibreSSL 3.7.2).

ratheesh commented 12 months ago

I am able to reproduce this issue.