1
0
forked from aniani/vim

updated for version 7.3.064

Problem:    Win32: ":dis +" shows nothing, but "+p does insert text.
Solution:   Display the * register, since that's what will be inserted.
            (Christian Brabandt)
This commit is contained in:
Bram Moolenaar
2010-11-24 14:28:58 +01:00
parent 96e5ceed93
commit 0818b87cbf
3 changed files with 9 additions and 1 deletions

View File

@@ -3979,7 +3979,12 @@ ex_display(eap)
for (i = -1; i < NUM_REGISTERS && !got_int; ++i)
{
name = get_register_name(i);
if (arg != NULL && vim_strchr(arg, name) == NULL)
if (arg != NULL && vim_strchr(arg, name) == NULL
#ifdef ONE_CLIPBOARD
/* Star register and plus register contain the same thing. */
&& (name != '*' || vim_strchr(arg, '+') == NULL)
#endif
)
continue; /* did not ask for this register */
#ifdef FEAT_CLIPBOARD