aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ops.c
diff options
context:
space:
mode:
authorMichael Reed <m.reed@mykolab.com>2015-02-03 21:12:42 -0500
committerJustin M. Keyes <justinkz@gmail.com>2015-03-05 19:03:35 -0500
commit0925870d0c820341d9cff789a4b139e0606646b4 (patch)
tree9537c0270b739c13a8eee74718a5be7d95c67a0c /src/nvim/ops.c
parent70a7517d17080e8de6616fa16608fd14da0498a1 (diff)
downloadrneovim-0925870d0c820341d9cff789a4b139e0606646b4.tar.gz
rneovim-0925870d0c820341d9cff789a4b139e0606646b4.tar.bz2
rneovim-0925870d0c820341d9cff789a4b139e0606646b4.zip
Macro cleanup: ONE_CLIPBOARD
Diffstat (limited to 'src/nvim/ops.c')
-rw-r--r--src/nvim/ops.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/nvim/ops.c b/src/nvim/ops.c
index 395ddf95a7..062fc1bbfa 100644
--- a/src/nvim/ops.c
+++ b/src/nvim/ops.c
@@ -3200,13 +3200,10 @@ void ex_display(exarg_T *eap)
MSG_PUTS_TITLE(_("\n--- Registers ---"));
for (i = -1; i < NUM_REGISTERS && !got_int; ++i) {
name = get_register_name(i);
- 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
- )
+
+ if (arg != NULL && vim_strchr(arg, name) == NULL) {
continue; /* did not ask for this register */
+ }
get_clipboard(name);