diff options
author | Bram Moolenaar <Bram@vim.org> | 2007-10-19 14:20:54 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2007-10-19 14:20:54 +0000 |
commit | c188b88040b10b62871f51254350b226318885cd (patch) | |
tree | d19fde783cb83e06f1d3ce0e7e3cdef42dea8ad4 /src/ex_docmd.c | |
parent | 2dd8b521bb07b188bb027481c6acb77bf3ea444e (diff) | |
download | vim-c188b88040b10b62871f51254350b226318885cd.zip |
updated for version 7.1-142
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r-- | src/ex_docmd.c | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c index 72b939bdb..44a1bd695 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -8426,21 +8426,17 @@ ex_redir(eap) || *arg == '"') { redir_reg = *arg++; - if (*arg == '>' && arg[1] == '>') + if (*arg == '>' && arg[1] == '>') /* append */ arg += 2; - else if ((*arg == NUL || (*arg == '>' && arg[1] == NUL)) && - (islower(redir_reg) -# ifdef FEAT_CLIPBOARD - || redir_reg == '*' - || redir_reg == '+' -# endif - || redir_reg == '"')) + else { + /* Can use both "@a" and "@a>". */ if (*arg == '>') arg++; - - /* make register empty */ - write_reg_contents(redir_reg, (char_u *)"", -1, FALSE); + /* Make register empty when not using @A-@Z and the + * command is valid. */ + if (*arg == NUL && !isupper(redir_reg)) + write_reg_contents(redir_reg, (char_u *)"", -1, FALSE); } } if (*arg != NUL) |