Remove unnecessary argument from Vim#update_editor (#36001)

Release Notes:

- N/A
This commit is contained in:
Conrad Irwin 2025-08-11 16:10:06 -06:00 committed by GitHub
parent fa3d0aaed4
commit add67bde43
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
24 changed files with 142 additions and 152 deletions

View file

@ -14,7 +14,7 @@ impl Vim {
cx: &mut Context<Self>,
) {
self.stop_recording(cx);
self.update_editor(window, cx, |_, editor, window, cx| {
self.update_editor(cx, |_, editor, cx| {
let text_layout_details = editor.text_layout_details(window);
editor.transact(window, cx, |editor, window, cx| {
let mut selection_starts: HashMap<_, _> = Default::default();
@ -51,7 +51,7 @@ impl Vim {
cx: &mut Context<Self>,
) {
self.stop_recording(cx);
self.update_editor(window, cx, |_, editor, window, cx| {
self.update_editor(cx, |_, editor, cx| {
editor.transact(window, cx, |editor, window, cx| {
let mut original_positions: HashMap<_, _> = Default::default();
editor.change_selections(SelectionEffects::no_scroll(), window, cx, |s| {