on master help sign in
Fix paste direction for typed paste commands (#2288)
commit773736b03a176159240bcef3162732d538917331 authorMichael Davis <mcarsondavis@gmail.com> dateTue 26 Apr 2022, 12:31 (5 years ago) parentfcd0ca3
1 file changed+2−2
helix-term/src/commands/typed.rs+2−2
helix-term/src/commands/typed.rs+2−2
@@ -648,7 +648,7 @@ fn paste_clipboard_before(
648648 _args: &[Cow<str>],
649649 _event: PromptEvent,
650650) -> anyhow::Result<()> {
651− paste_clipboard_impl(cx.editor, Paste::After, ClipboardType::Clipboard, 1)
651+ paste_clipboard_impl(cx.editor, Paste::Before, ClipboardType::Clipboard, 1)
652652}
653653
654654fn paste_primary_clipboard_after(
@@ -664,7 +664,7 @@ fn paste_primary_clipboard_before(
664664 _args: &[Cow<str>],
665665 _event: PromptEvent,
666666) -> anyhow::Result<()> {
667− paste_clipboard_impl(cx.editor, Paste::After, ClipboardType::Selection, 1)
667+ paste_clipboard_impl(cx.editor, Paste::Before, ClipboardType::Selection, 1)
668668}
669669
670670fn replace_selections_with_clipboard_impl(