on master help sign in
Fix paste direction for typed paste commands (#2288)
773736bMichael Davis
helix-term/src/commands/typed.rs+2−2
@@ -648,7 +648,7 @@ fn paste_clipboard_before(
648 _args: &[Cow<str>],
648 _args: &[Cow<str>],
649 _event: PromptEvent,
649 _event: PromptEvent,
650) -> anyhow::Result<()> {
650) -> anyhow::Result<()> {
651− paste_clipboard_impl(cx.editor, Paste::After, ClipboardType::Clipboard, 1)
651+ paste_clipboard_impl(cx.editor, Paste::Before, ClipboardType::Clipboard, 1)
652}
652}
653
653
654fn paste_primary_clipboard_after(
654fn paste_primary_clipboard_after(
@@ -664,7 +664,7 @@ fn paste_primary_clipboard_before(
664 _args: &[Cow<str>],
664 _args: &[Cow<str>],
665 _event: PromptEvent,
665 _event: PromptEvent,
666) -> anyhow::Result<()> {
666) -> anyhow::Result<()> {
667− paste_clipboard_impl(cx.editor, Paste::After, ClipboardType::Selection, 1)
667+ paste_clipboard_impl(cx.editor, Paste::Before, ClipboardType::Selection, 1)
668}
668}
669
669
670fn replace_selections_with_clipboard_impl(
670fn replace_selections_with_clipboard_impl(