0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 8.0.0522: Win32: when 'clipboard' is "unnamed" yyp does not work

Problem:    MS-Windows: when 'clipboard' is "unnamed" yyp does not work in a
            :global command.
Solution:   When setting the clipboard was postponed, do not clear the
            register.
This commit is contained in:
Bram Moolenaar
2017-03-29 19:20:41 +02:00
parent 99a6e8dd82
commit 3fcfa35f82
8 changed files with 31 additions and 6 deletions

View File

@@ -6466,7 +6466,7 @@ clip_get_selection(VimClipboard *cbd)
VIsual = old_visual;
VIsual_mode = old_visual_mode;
}
else
else if (!is_clipboard_needs_update())
{
clip_free_selection(cbd);