summaryrefslogtreecommitdiff
path: root/src/ops.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2010-11-24 14:28:58 +0100
committerBram Moolenaar <Bram@vim.org>2010-11-24 14:28:58 +0100
commit0818b87cbf7c0faf681775dae841aae41497758b (patch)
tree91b050dbdcf08efe56b129cbb5aee0b39481c8a7 /src/ops.c
parent96e5ceed93ea55cf80f76f51407ba840cf7a820d (diff)
downloadvim-0818b87cbf7c0faf681775dae841aae41497758b.zip
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)
Diffstat (limited to 'src/ops.c')
-rw-r--r--src/ops.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/ops.c b/src/ops.c
index cf5d1b13c..04ef069d5 100644
--- 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