Mercurial > vim
comparison src/ops.c @ 11273:96d83cd2904a v8.0.0522
patch 8.0.0522: Win32: when 'clipboard' is "unnamed" yyp does not work
commit https://github.com/vim/vim/commit/3fcfa35f82b9d1ef5e95051b3a45578e10c14ec3
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Mar 29 19:20:41 2017 +0200
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.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Wed, 29 Mar 2017 19:30:06 +0200 |
parents | 501f46f7644c |
children | 72b20190dce6 |
comparison
equal
deleted
inserted
replaced
11272:6e4f21c7f07e | 11273:96d83cd2904a |
---|---|
6464 curbuf->b_op_start = old_op_start; | 6464 curbuf->b_op_start = old_op_start; |
6465 curbuf->b_op_end = old_op_end; | 6465 curbuf->b_op_end = old_op_end; |
6466 VIsual = old_visual; | 6466 VIsual = old_visual; |
6467 VIsual_mode = old_visual_mode; | 6467 VIsual_mode = old_visual_mode; |
6468 } | 6468 } |
6469 else | 6469 else if (!is_clipboard_needs_update()) |
6470 { | 6470 { |
6471 clip_free_selection(cbd); | 6471 clip_free_selection(cbd); |
6472 | 6472 |
6473 /* Try to get selected text from another window */ | 6473 /* Try to get selected text from another window */ |
6474 clip_gen_request_selection(cbd); | 6474 clip_gen_request_selection(cbd); |