Mercurial > vim
diff src/ops.c @ 2644:e856f9cc2aee v7.3.064
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)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Wed, 24 Nov 2010 14:28:58 +0100 |
parents | c3b5d3fe9404 |
children | 2b475ed86e64 |
line wrap: on
line diff
--- a/src/ops.c +++ b/src/ops.c @@ -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