clipboard: setreg("*") with clipboard=unnamed #9954

Helped-by: Björn Linse <bjorn.linse@gmail.com>
fix #5646
This commit is contained in:
Justin M. Keyes
2019-04-28 21:06:24 +02:00
committed by GitHub
parent c76c798bf6
commit 8aca932aa0
2 changed files with 20 additions and 1 deletions

View File

@@ -5616,6 +5616,9 @@ static yankreg_T *adjust_clipboard_name(int *name, bool quiet, bool writing)
if (explicit_cb_reg) {
target = &y_regs[*name == '*' ? STAR_REGISTER : PLUS_REGISTER];
if (writing && (cb_flags & (*name == '*' ? CB_UNNAMED : CB_UNNAMEDPLUS))) {
clipboard_needs_update = false;
}
goto end;
} else { // unnamed register: "implicit" clipboard
if (writing && clipboard_delay_update) {