]> granicus.if.org Git - vim/commitdiff
updated for version 7.1-142 v7.1.142
authorBram Moolenaar <Bram@vim.org>
Fri, 19 Oct 2007 14:20:54 +0000 (14:20 +0000)
committerBram Moolenaar <Bram@vim.org>
Fri, 19 Oct 2007 14:20:54 +0000 (14:20 +0000)
src/ex_docmd.c
src/version.c

index 72b939bdb67d6c6e60a6fad3acfdee7b2ea128ab..44a1bd6957f4ba9f97ae45804e56c7e4d4798582 100644 (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)
index 5b9ad74beda2d99bf702e2b0e42720ff6e443bc1..daa1b0b20154858c76687581eccd033295777f53 100644 (file)
@@ -666,6 +666,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    142,
 /**/
     141,
 /**/