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
|
@ -890,7 +890,7 @@ impl Motion {
|
|||
}
|
||||
|
||||
if inclusive && selection.end.column() < map.line_len(selection.end.row()) {
|
||||
*selection.end.column_mut() += 1;
|
||||
selection.end = movement::saturating_right(map, selection.end)
|
||||
}
|
||||
}
|
||||
Some(selection.start..selection.end)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue