From b99d012e0d9535b823607ade836cc4d709524446 Mon Sep 17 00:00:00 2001 From: Michael Davis Date: Tue, 26 Apr 2022 11:11:55 -0500 Subject: [PATCH] fix paste direction for typed paste commands Looks like a small typo - the typed variants of these commands always paste after the selection. This commit fixes the before/after direction for those `*_before` commands. --- helix-term/src/commands/typed.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helix-term/src/commands/typed.rs b/helix-term/src/commands/typed.rs index 9ed78d1dd318..3e93cfd7ab2a 100644 --- a/helix-term/src/commands/typed.rs +++ b/helix-term/src/commands/typed.rs @@ -648,7 +648,7 @@ fn paste_clipboard_before( _args: &[Cow], _event: PromptEvent, ) -> anyhow::Result<()> { - paste_clipboard_impl(cx.editor, Paste::After, ClipboardType::Clipboard, 1) + paste_clipboard_impl(cx.editor, Paste::Before, ClipboardType::Clipboard, 1) } fn paste_primary_clipboard_after( @@ -664,7 +664,7 @@ fn paste_primary_clipboard_before( _args: &[Cow], _event: PromptEvent, ) -> anyhow::Result<()> { - paste_clipboard_impl(cx.editor, Paste::After, ClipboardType::Selection, 1) + paste_clipboard_impl(cx.editor, Paste::Before, ClipboardType::Selection, 1) } fn replace_selections_with_clipboard_impl(