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-04-30 21:50:04 -06:00
committed by GitHub
co-authored by Conrad Irwin
parent c9778a36ff
commit f39a24255c
4 changed files with 87 additions and 14 deletions
+1 -1
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);