mirror of
https://github.com/neovim/neovim.git
synced 2025-09-24 20:18:32 +00:00
clipboard: fix v:register when clipboard=unnamed,unnamedplus
This commit is contained in:
@@ -5452,7 +5452,7 @@ static yankreg_T *adjust_clipboard_name(int *name, bool quiet, bool writing)
|
||||
|
||||
yankreg_T *target;
|
||||
if (cb_flags & CB_UNNAMEDPLUS) {
|
||||
*name = cb_flags & CB_UNNAMED ? '"': '+';
|
||||
*name = (cb_flags & CB_UNNAMED && writing) ? '"': '+';
|
||||
target = &y_regs[PLUS_REGISTER];
|
||||
} else {
|
||||
*name = '*';
|
||||
|
Reference in New Issue
Block a user