-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
DEL key visually deletes two characters instead of one #15020
Comments
Can't reproduce this in Linux x Alacritty, xterm or wezterm, probably fair to tag this as a window and/or windows term preview issue? I assume by the description that you only see the errant behaviour on the line with an emoji on it? Do you see the same or similar effects on the following example when performing the same steps? <p style="margin: 2em; text-align: center;">
<strong style="color: var(--primary-header-color);">
How does it behave on this line 150 with a tail ⚠️
</strong>
</p> |
what does |
What happens if you paste the line ( Or even test it in another editor like nano too, to narrow down the focus. |
All of the above was done in windows terminal as before. |
Adding to Desktop.2021.07.16.-.10.54.15.05-halfresolution.mp4(There seems to be 2 other emoji related issues visible here too, but they're likely unrelated. Probably tied to glyph font fallback. The glyph for |
Assuming this is fixed in recent Windows Terminal, if not leave a comment |
@justinmk Not fixed in Windows Terminal (v1.14.1452.0). And behaves the same in the old conhost.exe terminal, too. But this is a conhost/WT bug, not nvim specific. WT+conhost behaves weird with that yellow triangle emoji outside nvim, too. So maybe this issue should be on the microsoft side. |
Fixed by #19686 |
nvim --version
:$TERM
: builtin_vtpconSteps to reproduce using
nvim -u NORC
Create a HTML file with the following contents:
Open the file with neovim, move to line 3 and enter INSERT mode. Navigate to the beginning of the "150" on the third line. Press DEL.
I've also asked a question on stackexchange: https://vi.stackexchange.com/questions/31773/delete-key-appears-to-remove-two-characters
Actual behaviour
Visually both the 1 and the 5 from the 150 are removed visually. However if I save the file and view the contents, or ESC into NORMAL mode and then press CTRL+SHIFT+L I can see that only the 1 was deleted.
Expected behaviour
Visually only the 1 is deleted.
The text was updated successfully, but these errors were encountered: