1 To: vim_dev@googlegroups.com
4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
10 Patch 7.3.151 (after 7.3.074)
11 Problem: When "unnamedplus" is in 'clipboard' the selection is sometimes
12 also copied to the star register.
13 Solution: Avoid copy to the star register when undesired. (James Vega)
17 *** ../vim-7.3.150/src/ops.c 2010-12-08 14:23:08.000000000 +0100
18 --- src/ops.c 2011-04-01 16:23:10.000000000 +0200
21 /* Copy the text from register 0 to the clipboard register. */
22 copy_yank_reg(&(y_regs[PLUS_REGISTER]));
24 - /* No need to copy to * register upon 'unnamed' now - see below */
25 clip_own_selection(&clip_plus);
26 clip_gen_set_selection(&clip_plus);
27 ! if (!clip_isautosel() && !did_star)
29 copy_yank_reg(&(y_regs[STAR_REGISTER]));
30 clip_own_selection(&clip_star);
32 /* Copy the text from register 0 to the clipboard register. */
33 copy_yank_reg(&(y_regs[PLUS_REGISTER]));
35 clip_own_selection(&clip_plus);
36 clip_gen_set_selection(&clip_plus);
37 ! if (!clip_isautosel() && !did_star && curr == &(y_regs[PLUS_REGISTER]))
39 copy_yank_reg(&(y_regs[STAR_REGISTER]));
40 clip_own_selection(&clip_star);
41 *** ../vim-7.3.150/src/version.c 2011-04-01 16:07:41.000000000 +0200
42 --- src/version.c 2011-04-01 16:25:40.000000000 +0200
46 { /* Add new patch number below this line */
52 BLACK KNIGHT: I'm invincible!
53 ARTHUR: You're a looney.
54 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
56 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
57 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
58 \\\ an exciting new programming language -- http://www.Zimbu.org ///
59 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///