mirror of
https://github.com/ilyakooo0/helix.git
synced 2024-11-29 13:32:09 +03:00
Fix paste direction for typed paste commands (#2288)
This commit is contained in:
parent
fcd0ca3912
commit
773736b03a
@ -648,7 +648,7 @@ fn paste_clipboard_before(
|
|||||||
_args: &[Cow<str>],
|
_args: &[Cow<str>],
|
||||||
_event: PromptEvent,
|
_event: PromptEvent,
|
||||||
) -> anyhow::Result<()> {
|
) -> 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(
|
fn paste_primary_clipboard_after(
|
||||||
@ -664,7 +664,7 @@ fn paste_primary_clipboard_before(
|
|||||||
_args: &[Cow<str>],
|
_args: &[Cow<str>],
|
||||||
_event: PromptEvent,
|
_event: PromptEvent,
|
||||||
) -> anyhow::Result<()> {
|
) -> 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(
|
fn replace_selections_with_clipboard_impl(
|
||||||
|
Loading…
Reference in New Issue
Block a user