4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: ":reg" doesn't show the actual contents of the clipboard if it was
12 filled outside of Vim. (Stuart MacDonald)
13 Solution: Obtain the clipboard contents before displaying it.
17 *** ../vim-6.2.339/src/ops.c Tue Mar 9 19:49:08 2004
18 --- src/ops.c Thu Mar 11 17:40:10 2004
26 char_u *arg = eap->arg;
34 char_u *arg = eap->arg;
39 MSG_PUTS_TITLE(_("\n--- Registers ---"));
40 for (i = -1; i < NUM_REGISTERS && !got_int; ++i)
42 + name = get_register_name(i);
43 + if (arg != NULL && vim_strchr(arg, name) == NULL)
44 + continue; /* did not ask for this register */
46 + #ifdef FEAT_CLIPBOARD
47 + /* Adjust register name for "unnamed" in 'clipboard'.
48 + * When it's a clipboard register, fill it with the current contents
49 + * of the clipboard. */
50 + adjust_clip_reg(&name);
51 + (void)may_get_selection(name);
56 if (y_previous != NULL)
62 ! name = get_register_name(i);
63 ! if (yb->y_array != NULL
64 ! && (arg == NULL || vim_strchr(arg, name) != NULL))
72 ! if (yb->y_array != NULL)
76 *** ../vim-6.2.339/src/version.c Wed Mar 10 16:22:45 2004
77 --- src/version.c Thu Mar 11 17:47:28 2004
81 { /* Add new patch number below this line */
88 password: I don't know, please tell me
93 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
94 /// Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
95 \\\ Project leader for A-A-P -- http://www.A-A-P.org ///
96 \\\ Buy at Amazon and help AIDS victims -- http://ICCF.nl/click1.html ///