Unnamed repository; edit this file 'description' to name the repository.
fix `:yank-joined` disrespecting default-yank-register option (#12890)
| -rw-r--r-- | helix-term/src/commands/typed.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/helix-term/src/commands/typed.rs b/helix-term/src/commands/typed.rs index c5c53acd..00e89d6e 100644 --- a/helix-term/src/commands/typed.rs +++ b/helix-term/src/commands/typed.rs @@ -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(()) } |