vim: Fix crash when using ‘ge’ motion on multibyte character (#31566)

Closes #30919

- [x] Test

Release Notes:

- Fixed the issue where using the Vim motion `ge` on multibyte character
would cause Zed to crash.
This commit is contained in:
Smit Barmase 2025-05-28 06:30:51 +05:30 committed by GitHub
parent 6545c5ebe0
commit 15d59fcda9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 20 additions and 2 deletions

View file

@ -27,3 +27,7 @@
{"Key":"g"}
{"Key":"shift-e"}
{"Get":{"state":"123 234 34ˇ5\n4;5.6 567 678\n789 890 901\n","mode":"Normal"}}
{"Put":{"state":"bar ˇó\n"}}
{"Key":"g"}
{"Key":"e"}
{"Get":{"state":"baˇr ó\n","mode":"Normal"}}