ZIm/crates/vim/test_data/test_previous_word_end.json
Smit Barmase 15d59fcda9
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.
2025-05-28 06:30:51 +05:30

33 lines
1.1 KiB
JSON

{"Put":{"state":"456 5ˇ67 678\n"}}
{"Key":"g"}
{"Key":"e"}
{"Get":{"state":"45ˇ6 567 678\n","mode":"Normal"}}
{"Put":{"state":"123 234 345\n456 5ˇ67 678\n"}}
{"Key":"4"}
{"Key":"g"}
{"Key":"e"}
{"Get":{"state":"12ˇ3 234 345\n456 567 678\n","mode":"Normal"}}
{"Put":{"state":"123 234 345\n4;5.6 5ˇ67 678\n789 890 901\n"}}
{"Key":"g"}
{"Key":"e"}
{"Get":{"state":"123 234 345\n4;5.ˇ6 567 678\n789 890 901\n","mode":"Normal"}}
{"Put":{"state":"123 234 345\n4;5.6 5ˇ67 678\n789 890 901\n"}}
{"Key":"5"}
{"Key":"g"}
{"Key":"e"}
{"Get":{"state":"123 234 345\nˇ4;5.6 567 678\n789 890 901\n","mode":"Normal"}}
{"Put":{"state":"123 234 345\n\n78ˇ9 890 901\n"}}
{"Key":"g"}
{"Key":"e"}
{"Get":{"state":"123 234 345\nˇ\n789 890 901\n","mode":"Normal"}}
{"Key":"g"}
{"Key":"e"}
{"Get":{"state":"123 234 34ˇ5\n\n789 890 901\n","mode":"Normal"}}
{"Put":{"state":"123 234 345\n4;5.ˇ6 567 678\n789 890 901\n"}}
{"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"}}