mirror of
https://github.com/helix-editor/helix.git
synced 2025-04-03 02:47:45 +03:00
fix :yank-joined
disrespecting default-yank-register option (#12890)
This commit is contained in:
parent
46728046fd
commit
0445062d27
1 changed files with 4 additions and 1 deletions
|
@ -978,7 +978,10 @@ fn yank_joined(
|
|||
let doc = doc!(cx.editor);
|
||||
let default_sep = Cow::Borrowed(doc.line_ending.as_str());
|
||||
let separator = args.first().unwrap_or(&default_sep);
|
||||
let register = cx.editor.selected_register.unwrap_or('"');
|
||||
let register = cx
|
||||
.editor
|
||||
.selected_register
|
||||
.unwrap_or(cx.editor.config().default_yank_register);
|
||||
yank_joined_impl(cx.editor, separator, register);
|
||||
Ok(())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue