Skip to content

Commit

Permalink
Fix paste direction for typed paste commands (#2288)
Browse files Browse the repository at this point in the history
  • Loading branch information
the-mikedavis authored Apr 26, 2022
1 parent fcd0ca3 commit 773736b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helix-term/src/commands/typed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@ fn paste_clipboard_before(
_args: &[Cow<str>],
_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(
Expand All @@ -664,7 +664,7 @@ fn paste_primary_clipboard_before(
_args: &[Cow<str>],
_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(
Expand Down

0 comments on commit 773736b

Please sign in to comment.