From 773736b03a176159240bcef3162732d538917331 Mon Sep 17 00:00:00 2001 From: Michael Davis Date: Tue, 26 Apr 2022 12:31:45 -0500 Subject: Fix paste direction for typed paste commands (#2288) --- helix-term/src/commands/typed.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'helix-term/src') diff --git a/helix-term/src/commands/typed.rs b/helix-term/src/commands/typed.rs index 9ed78d1d..3e93cfd7 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( -- cgit v1.2.3-70-g09d2