Adjust the yss surrounds operator (#11212)

For #11084 In the case of an indentation in front of the current line,
it may also be necessary to deal with the start point of the selected
range


Release Notes:


- N/A

---------

Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
This commit is contained in:
Hans 2024-05-01 11:50:04 +08:00 committed by GitHub
parent c9778a36ff
commit f39a24255c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 87 additions and 14 deletions

View file

@ -526,7 +526,7 @@ impl Vim {
| Operator::ChangeSurrounds { .. }
| Operator::DeleteSurrounds
) {
self.clear_operator(cx);
self.update_state(|state| state.operator_stack.clear());
};
self.update_state(|state| state.operator_stack.push(operator));
self.sync_vim_settings(cx);