vim: Fix c
when range ends in a multibyte character (#14139)
Release Notes: - vim: Fixed `c <motion>` omitting trailing multibyte characters ([#13909](https://github.com/zed-industries/zed/issues/13909)).
This commit is contained in:
parent
d49727ff10
commit
018a2a29ea
3 changed files with 21 additions and 1 deletions
|
@ -1266,3 +1266,16 @@ async fn test_toggle_comments(cx: &mut gpui::TestAppContext) {
|
|||
Mode::Normal,
|
||||
);
|
||||
}
|
||||
|
||||
#[gpui::test]
|
||||
async fn test_find_multibyte(cx: &mut gpui::TestAppContext) {
|
||||
let mut cx = NeovimBackedTestContext::new(cx).await;
|
||||
|
||||
cx.set_shared_state(r#"<label for="guests">ˇPočet hostů</label>"#)
|
||||
.await;
|
||||
|
||||
cx.simulate_shared_keystrokes("c t < o escape").await;
|
||||
cx.shared_state()
|
||||
.await
|
||||
.assert_eq(r#"<label for="guests">ˇo</label>"#);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue