@@ -2256,7 +2256,7 @@ mod cmd {
2256 args: &[&str],
2256 args: &[&str],
2257 event: PromptEvent,
2257 event: PromptEvent,
2258 ) -> anyhow::Result<()> {
2258 ) -> anyhow::Result<()> {
2259− quit_all_impl(&mut cx.editor, args, event, false)
2259+ quit_all_impl(cx.editor, args, event, false)
2262 fn force_quit_all(
2262 fn force_quit_all(
@@ -2264,7 +2264,7 @@ mod cmd {
2264 args: &[&str],
2264 args: &[&str],
2265 event: PromptEvent,
2265 event: PromptEvent,
2266 ) -> anyhow::Result<()> {
2266 ) -> anyhow::Result<()> {
2267− quit_all_impl(&mut cx.editor, args, event, true)
2267+ quit_all_impl(cx.editor, args, event, true)
2270 fn cquit(
2270 fn cquit(
@@ -2300,7 +2300,7 @@ mod cmd {
2300 _args: &[&str],
2300 _args: &[&str],
2301 _event: PromptEvent,
2301 _event: PromptEvent,
2302 ) -> anyhow::Result<()> {
2302 ) -> 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)
2306 fn yank_joined_to_clipboard(
2306 fn yank_joined_to_clipboard(
@@ -2313,7 +2313,7 @@ mod cmd {
2313 .first()
2313 .first()
2314 .copied()
2314 .copied()
2315 .unwrap_or_else(|| doc.line_ending.as_str());
2315 .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)
2319 fn yank_main_selection_to_primary_clipboard(
2319 fn yank_main_selection_to_primary_clipboard(
@@ -2321,7 +2321,7 @@ mod cmd {
2321 _args: &[&str],
2321 _args: &[&str],
2322 _event: PromptEvent,
2322 _event: PromptEvent,
2323 ) -> anyhow::Result<()> {
2323 ) -> 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)
2327 fn yank_joined_to_primary_clipboard(
2327 fn yank_joined_to_primary_clipboard(
@@ -2334,7 +2334,7 @@ mod cmd {
2334 .first()
2334 .first()
2335 .copied()
2335 .copied()
2336 .unwrap_or_else(|| doc.line_ending.as_str());
2336 .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)
2340 fn paste_clipboard_after(
2340 fn paste_clipboard_after(
@@ -2342,7 +2342,7 @@ mod cmd {
2342 _args: &[&str],
2342 _args: &[&str],
2343 _event: PromptEvent,
2343 _event: PromptEvent,
2344 ) -> anyhow::Result<()> {
2344 ) -> anyhow::Result<()> {
2345− paste_clipboard_impl(&mut cx.editor, Paste::After, ClipboardType::Clipboard)
2345+ paste_clipboard_impl(cx.editor, Paste::After, ClipboardType::Clipboard)
2348 fn paste_clipboard_before(
2348 fn paste_clipboard_before(
@@ -2350,7 +2350,7 @@ mod cmd {
2350 _args: &[&str],
2350 _args: &[&str],
2351 _event: PromptEvent,
2351 _event: PromptEvent,
2352 ) -> anyhow::Result<()> {
2352 ) -> anyhow::Result<()> {
2353− paste_clipboard_impl(&mut cx.editor, Paste::After, ClipboardType::Clipboard)
2353+ paste_clipboard_impl(cx.editor, Paste::After, ClipboardType::Clipboard)
2356 fn paste_primary_clipboard_after(
2356 fn paste_primary_clipboard_after(
@@ -2358,7 +2358,7 @@ mod cmd {
2358 _args: &[&str],
2358 _args: &[&str],
2359 _event: PromptEvent,
2359 _event: PromptEvent,
2360 ) -> anyhow::Result<()> {
2360 ) -> anyhow::Result<()> {
2361− paste_clipboard_impl(&mut cx.editor, Paste::After, ClipboardType::Selection)
2361+ paste_clipboard_impl(cx.editor, Paste::After, ClipboardType::Selection)
2364 fn paste_primary_clipboard_before(
2364 fn paste_primary_clipboard_before(
@@ -2366,7 +2366,7 @@ mod cmd {
2366 _args: &[&str],
2366 _args: &[&str],
2367 _event: PromptEvent,
2367 _event: PromptEvent,
2368 ) -> anyhow::Result<()> {
2368 ) -> anyhow::Result<()> {
2369− paste_clipboard_impl(&mut cx.editor, Paste::After, ClipboardType::Selection)
2369+ paste_clipboard_impl(cx.editor, Paste::After, ClipboardType::Selection)
2372 fn replace_selections_with_clipboard_impl(
2372 fn replace_selections_with_clipboard_impl(
@@ -2544,7 +2544,7 @@ mod cmd {
2545 let line = args[0].parse::<usize>()?;
2545 let line = args[0].parse::<usize>()?;
2547− goto_line_impl(&mut cx.editor, NonZeroUsize::new(line));
2547+ goto_line_impl(cx.editor, NonZeroUsize::new(line));
2549 let (view, doc) = current!(cx.editor);
2549 let (view, doc) = current!(cx.editor);
@@ -3545,7 +3545,7 @@ fn push_jump(editor: &mut Editor) {
3547fn goto_line(cx: &mut Context) {
3547fn goto_line(cx: &mut Context) {
3548− goto_line_impl(&mut cx.editor, cx.count)
3548+ goto_line_impl(cx.editor, cx.count)
3551fn goto_line_impl(editor: &mut Editor, count: Option<NonZeroUsize>) {
3551fn goto_line_impl(editor: &mut Editor, count: Option<NonZeroUsize>) {
@@ -4445,7 +4445,7 @@ fn yank_joined_to_clipboard_impl(
4445fn yank_joined_to_clipboard(cx: &mut Context) {
4445fn yank_joined_to_clipboard(cx: &mut Context) {
4446 let line_ending = doc!(cx.editor).line_ending;
4446 let line_ending = doc!(cx.editor).line_ending;
4447 let _ = yank_joined_to_clipboard_impl(
4447 let _ = yank_joined_to_clipboard_impl(
4448− &mut cx.editor,
4448+ cx.editor,
4449 line_ending.as_str(),
4449 line_ending.as_str(),
4450 ClipboardType::Clipboard,
4450 ClipboardType::Clipboard,
@@ -4473,20 +4473,20 @@ fn yank_main_selection_to_clipboard_impl(
4475fn yank_main_selection_to_clipboard(cx: &mut Context) {
4475fn 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);
4479fn yank_joined_to_primary_clipboard(cx: &mut Context) {
4479fn yank_joined_to_primary_clipboard(cx: &mut Context) {
4480 let line_ending = doc!(cx.editor).line_ending;
4480 let line_ending = doc!(cx.editor).line_ending;
4481 let _ = yank_joined_to_clipboard_impl(
4481 let _ = yank_joined_to_clipboard_impl(
4482− &mut cx.editor,
4482+ cx.editor,
4483 line_ending.as_str(),
4483 line_ending.as_str(),
4484 ClipboardType::Selection,
4484 ClipboardType::Selection,
4488fn yank_main_selection_to_primary_clipboard(cx: &mut Context) {
4488fn 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);
4490 exit_select_mode(cx);
4490 exit_select_mode(cx);
@@ -4569,19 +4569,19 @@ fn paste_clipboard_impl(
4571fn paste_clipboard_after(cx: &mut Context) {
4571fn 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);
4575fn paste_clipboard_before(cx: &mut Context) {
4575fn 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);
4579fn paste_primary_clipboard_after(cx: &mut Context) {
4579fn 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);
4583fn paste_primary_clipboard_before(cx: &mut Context) {
4583fn 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);
4587fn replace_with_yanked(cx: &mut Context) {
4587fn replace_with_yanked(cx: &mut Context) {
@@ -4638,11 +4638,11 @@ fn replace_selections_with_clipboard_impl(
4640fn replace_selections_with_clipboard(cx: &mut Context) {
4640fn 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);
4644fn replace_selections_with_primary_clipboard(cx: &mut Context) {
4644fn 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);
4648fn paste_after(cx: &mut Context) {
4648fn paste_after(cx: &mut Context) {
@@ -5157,7 +5157,7 @@ fn expand_selection(cx: &mut Context) {
5157 doc.set_selection(view.id, selection);
5157 doc.set_selection(view.id, selection);
5160− motion(&mut cx.editor);
5160+ motion(cx.editor);
5161 cx.editor.last_motion = Some(Motion(Box::new(motion)));
5161 cx.editor.last_motion = Some(Motion(Box::new(motion)));
@@ -5389,7 +5389,7 @@ fn select_textobject(cx: &mut Context, objtype: textobject::TextObject) {
5390 doc.set_selection(view.id, selection);
5390 doc.set_selection(view.id, selection);
5392− textobject(&mut cx.editor);
5392+ textobject(cx.editor);
5393 cx.editor.last_motion = Some(Motion(Box::new(textobject)));
5393 cx.editor.last_motion = Some(Motion(Box::new(textobject)));
@@ -5719,7 +5719,7 @@ fn rename_symbol(cx: &mut Context) {
5719 let task = language_server.rename_symbol(doc.identifier(), pos, input.to_string());
5719 let task = language_server.rename_symbol(doc.identifier(), pos, input.to_string());
5720 let edits = block_on(task).unwrap_or_default();
5720 let edits = block_on(task).unwrap_or_default();
5721 log::debug!("Edits from LSP: {:?}", edits);
5721 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);
5725 cx.push_layer(Box::new(prompt));
5725 cx.push_layer(Box::new(prompt));