@@ -2256,7 +2256,7 @@ mod cmd {
22562256 args: &[&str],
22572257 event: PromptEvent,
22582258 ) -> anyhow::Result<()> {
2259− quit_all_impl(&mut cx.editor, args, event, false)
2259+ quit_all_impl(cx.editor, args, event, false)
22602260 }
22612261
22622262 fn force_quit_all(
@@ -2264,7 +2264,7 @@ mod cmd {
22642264 args: &[&str],
22652265 event: PromptEvent,
22662266 ) -> anyhow::Result<()> {
2267− quit_all_impl(&mut cx.editor, args, event, true)
2267+ quit_all_impl(cx.editor, args, event, true)
22682268 }
22692269
22702270 fn cquit(
@@ -2300,7 +2300,7 @@ mod cmd {
23002300 _args: &[&str],
23012301 _event: PromptEvent,
23022302 ) -> anyhow::Result<()> {
2303− yank_main_selection_to_clipboard_impl(&mut cx.editor, ClipboardType::Clipboard)
2303+ yank_main_selection_to_clipboard_impl(cx.editor, ClipboardType::Clipboard)
23042304 }
23052305
23062306 fn yank_joined_to_clipboard(
@@ -2313,7 +2313,7 @@ mod cmd {
23132313 .first()
23142314 .copied()
23152315 .unwrap_or_else(|| doc.line_ending.as_str());
2316− yank_joined_to_clipboard_impl(&mut cx.editor, separator, ClipboardType::Clipboard)
2316+ yank_joined_to_clipboard_impl(cx.editor, separator, ClipboardType::Clipboard)
23172317 }
23182318
23192319 fn yank_main_selection_to_primary_clipboard(
@@ -2321,7 +2321,7 @@ mod cmd {
23212321 _args: &[&str],
23222322 _event: PromptEvent,
23232323 ) -> anyhow::Result<()> {
2324− yank_main_selection_to_clipboard_impl(&mut cx.editor, ClipboardType::Selection)
2324+ yank_main_selection_to_clipboard_impl(cx.editor, ClipboardType::Selection)
23252325 }
23262326
23272327 fn yank_joined_to_primary_clipboard(
@@ -2334,7 +2334,7 @@ mod cmd {
23342334 .first()
23352335 .copied()
23362336 .unwrap_or_else(|| doc.line_ending.as_str());
2337− yank_joined_to_clipboard_impl(&mut cx.editor, separator, ClipboardType::Selection)
2337+ yank_joined_to_clipboard_impl(cx.editor, separator, ClipboardType::Selection)
23382338 }
23392339
23402340 fn paste_clipboard_after(
@@ -2342,7 +2342,7 @@ mod cmd {
23422342 _args: &[&str],
23432343 _event: PromptEvent,
23442344 ) -> anyhow::Result<()> {
2345− paste_clipboard_impl(&mut cx.editor, Paste::After, ClipboardType::Clipboard)
2345+ paste_clipboard_impl(cx.editor, Paste::After, ClipboardType::Clipboard)
23462346 }
23472347
23482348 fn paste_clipboard_before(
@@ -2350,7 +2350,7 @@ mod cmd {
23502350 _args: &[&str],
23512351 _event: PromptEvent,
23522352 ) -> anyhow::Result<()> {
2353− paste_clipboard_impl(&mut cx.editor, Paste::After, ClipboardType::Clipboard)
2353+ paste_clipboard_impl(cx.editor, Paste::After, ClipboardType::Clipboard)
23542354 }
23552355
23562356 fn paste_primary_clipboard_after(
@@ -2358,7 +2358,7 @@ mod cmd {
23582358 _args: &[&str],
23592359 _event: PromptEvent,
23602360 ) -> anyhow::Result<()> {
2361− paste_clipboard_impl(&mut cx.editor, Paste::After, ClipboardType::Selection)
2361+ paste_clipboard_impl(cx.editor, Paste::After, ClipboardType::Selection)
23622362 }
23632363
23642364 fn paste_primary_clipboard_before(
@@ -2366,7 +2366,7 @@ mod cmd {
23662366 _args: &[&str],
23672367 _event: PromptEvent,
23682368 ) -> anyhow::Result<()> {
2369− paste_clipboard_impl(&mut cx.editor, Paste::After, ClipboardType::Selection)
2369+ paste_clipboard_impl(cx.editor, Paste::After, ClipboardType::Selection)
23702370 }
23712371
23722372 fn replace_selections_with_clipboard_impl(
@@ -2544,7 +2544,7 @@ mod cmd {
25442544
25452545 let line = args[0].parse::<usize>()?;
25462546
2547− goto_line_impl(&mut cx.editor, NonZeroUsize::new(line));
2547+ goto_line_impl(cx.editor, NonZeroUsize::new(line));
25482548
25492549 let (view, doc) = current!(cx.editor);
25502550
@@ -3545,7 +3545,7 @@ fn push_jump(editor: &mut Editor) {
35453545}
35463546
35473547fn goto_line(cx: &mut Context) {
3548− goto_line_impl(&mut cx.editor, cx.count)
3548+ goto_line_impl(cx.editor, cx.count)
35493549}
35503550
35513551fn goto_line_impl(editor: &mut Editor, count: Option<NonZeroUsize>) {
@@ -4445,7 +4445,7 @@ fn yank_joined_to_clipboard_impl(
44454445fn yank_joined_to_clipboard(cx: &mut Context) {
44464446 let line_ending = doc!(cx.editor).line_ending;
44474447 let _ = yank_joined_to_clipboard_impl(
4448− &mut cx.editor,
4448+ cx.editor,
44494449 line_ending.as_str(),
44504450 ClipboardType::Clipboard,
44514451 );
@@ -4473,20 +4473,20 @@ fn yank_main_selection_to_clipboard_impl(
44734473}
44744474
44754475fn yank_main_selection_to_clipboard(cx: &mut Context) {
4476− let _ = yank_main_selection_to_clipboard_impl(&mut cx.editor, ClipboardType::Clipboard);
4476+ let _ = yank_main_selection_to_clipboard_impl(cx.editor, ClipboardType::Clipboard);
44774477}
44784478
44794479fn yank_joined_to_primary_clipboard(cx: &mut Context) {
44804480 let line_ending = doc!(cx.editor).line_ending;
44814481 let _ = yank_joined_to_clipboard_impl(
4482− &mut cx.editor,
4482+ cx.editor,
44834483 line_ending.as_str(),
44844484 ClipboardType::Selection,
44854485 );
44864486}
44874487
44884488fn yank_main_selection_to_primary_clipboard(cx: &mut Context) {
4489− let _ = yank_main_selection_to_clipboard_impl(&mut cx.editor, ClipboardType::Selection);
4489+ let _ = yank_main_selection_to_clipboard_impl(cx.editor, ClipboardType::Selection);
44904490 exit_select_mode(cx);
44914491}
44924492
@@ -4569,19 +4569,19 @@ fn paste_clipboard_impl(
45694569}
45704570
45714571fn paste_clipboard_after(cx: &mut Context) {
4572− let _ = paste_clipboard_impl(&mut cx.editor, Paste::After, ClipboardType::Clipboard);
4572+ let _ = paste_clipboard_impl(cx.editor, Paste::After, ClipboardType::Clipboard);
45734573}
45744574
45754575fn paste_clipboard_before(cx: &mut Context) {
4576− let _ = paste_clipboard_impl(&mut cx.editor, Paste::Before, ClipboardType::Clipboard);
4576+ let _ = paste_clipboard_impl(cx.editor, Paste::Before, ClipboardType::Clipboard);
45774577}
45784578
45794579fn paste_primary_clipboard_after(cx: &mut Context) {
4580− let _ = paste_clipboard_impl(&mut cx.editor, Paste::After, ClipboardType::Selection);
4580+ let _ = paste_clipboard_impl(cx.editor, Paste::After, ClipboardType::Selection);
45814581}
45824582
45834583fn paste_primary_clipboard_before(cx: &mut Context) {
4584− let _ = paste_clipboard_impl(&mut cx.editor, Paste::Before, ClipboardType::Selection);
4584+ let _ = paste_clipboard_impl(cx.editor, Paste::Before, ClipboardType::Selection);
45854585}
45864586
45874587fn replace_with_yanked(cx: &mut Context) {
@@ -4638,11 +4638,11 @@ fn replace_selections_with_clipboard_impl(
46384638}
46394639
46404640fn replace_selections_with_clipboard(cx: &mut Context) {
4641− let _ = replace_selections_with_clipboard_impl(&mut cx.editor, ClipboardType::Clipboard);
4641+ let _ = replace_selections_with_clipboard_impl(cx.editor, ClipboardType::Clipboard);
46424642}
46434643
46444644fn replace_selections_with_primary_clipboard(cx: &mut Context) {
4645− let _ = replace_selections_with_clipboard_impl(&mut cx.editor, ClipboardType::Selection);
4645+ let _ = replace_selections_with_clipboard_impl(cx.editor, ClipboardType::Selection);
46464646}
46474647
46484648fn paste_after(cx: &mut Context) {
@@ -5157,7 +5157,7 @@ fn expand_selection(cx: &mut Context) {
51575157 doc.set_selection(view.id, selection);
51585158 }
51595159 };
5160− motion(&mut cx.editor);
5160+ motion(cx.editor);
51615161 cx.editor.last_motion = Some(Motion(Box::new(motion)));
51625162}
51635163
@@ -5389,7 +5389,7 @@ fn select_textobject(cx: &mut Context, objtype: textobject::TextObject) {
53895389 });
53905390 doc.set_selection(view.id, selection);
53915391 };
5392− textobject(&mut cx.editor);
5392+ textobject(cx.editor);
53935393 cx.editor.last_motion = Some(Motion(Box::new(textobject)));
53945394 }
53955395 })
@@ -5719,7 +5719,7 @@ fn rename_symbol(cx: &mut Context) {
57195719 let task = language_server.rename_symbol(doc.identifier(), pos, input.to_string());
57205720 let edits = block_on(task).unwrap_or_default();
57215721 log::debug!("Edits from LSP: {:?}", edits);
5722− apply_workspace_edit(&mut cx.editor, offset_encoding, &edits);
5722+ apply_workspace_edit(cx.editor, offset_encoding, &edits);
57235723 },
57245724 );
57255725 cx.push_layer(Box::new(prompt));