0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

updated for version 7.1-142

This commit is contained in:
Bram Moolenaar
2007-10-19 14:20:54 +00:00
parent 2dd8b521bb
commit c188b88040
2 changed files with 9 additions and 11 deletions

View File

@@ -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)