Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
WSL - ZSH - Deleting characters does not function as expected #1615
ConEmu build: 180617 x64
When I delete characters, it'll skip over the character and delete the character before. Editing files with nano/vi is all kinds of messed up too (looks fine till you start editing).
I have confirmed this issue is specific to ZSH and does not occur with bash.
Same issue, only occurs in zsh, even after getting rid of double-width characters in
This happened after typing
Unable to reproduce when running under directly under
@Maximus5 Tried several ways including
If I run
The behavior is odd and is and is probably the fault of
Input is just sending a
Relevant env vars:
added a commit
Jun 26, 2018
Interestingly that separate calls provide correct cursor position
and only write three characters at once get us to wrong result
Thank you for the temporary fix, not sure why ZSH does this in the first place (it seems to happen with the default ZSH profile too), something terminfo related likely but that's how it operates on Linux so even though it's weird, that's for ZSH developers to look into or maybe there's a reason for it.
Anyway hopefully this gets fixed at the Win Console level.
Woo, this was a doozy. While refactoring, a pair of if statements got collapsed into one, causing us to backspace twice. I'm sending out a PR to fix this now, should be fixed soon enough, and out to insiders a few weeks after that.
Thanks everyone! Especially @Maximus5 for giving me a really easy unit test :)