]> granicus.if.org Git - vim/commitdiff
updated for version 7.0-160 v7.0.160
authorBram Moolenaar <Bram@vim.org>
Tue, 7 Nov 2006 17:43:47 +0000 (17:43 +0000)
committerBram Moolenaar <Bram@vim.org>
Tue, 7 Nov 2006 17:43:47 +0000 (17:43 +0000)
src/ex_docmd.c
src/normal.c
src/ops.c
src/proto/ops.pro
src/version.c

index 4183e9105f082b79bb46a7898c88d7fe2376f4ff..3e97f951734cbe4a69d94d3f5b94a7805b664bee 100644 (file)
@@ -8219,8 +8219,9 @@ ex_at(eap)
     c = *eap->arg;
     if (c == NUL || (c == '*' && *eap->cmd == '*'))
        c = '@';
-    /* put the register in mapbuf */
-    if (do_execreg(c, TRUE, vim_strchr(p_cpo, CPO_EXECBUF) != NULL) == FAIL)
+    /* Put the register in the typeahead buffer with the "silent" flag. */
+    if (do_execreg(c, TRUE, vim_strchr(p_cpo, CPO_EXECBUF) != NULL, TRUE)
+                                                                     == FAIL)
     {
        beep_flush();
     }
index 3d1a5a66943716ff92052150ed81ab31380e4629..94d98996be8c10afbf87505593403e006ab8b8bd 100644 (file)
@@ -8860,7 +8860,7 @@ nv_at(cap)
 #endif
     while (cap->count1-- && !got_int)
     {
-       if (do_execreg(cap->nchar, FALSE, FALSE) == FAIL)
+       if (do_execreg(cap->nchar, FALSE, FALSE, FALSE) == FAIL)
        {
            clearopbeep(cap->oap);
            break;
index 4f45aea4280550ba6d955cf6dfa6f6cb3482aeb6..2091ef580eb0da26b4b88787f46fb1561caa1771 100644 (file)
--- a/src/ops.c
+++ b/src/ops.c
@@ -95,8 +95,8 @@ static void shift_block __ARGS((oparg_T *oap, int amount));
 static void block_insert __ARGS((oparg_T *oap, char_u *s, int b_insert, struct block_def*bdp));
 #endif
 static int     stuff_yank __ARGS((int, char_u *));
-static void    put_reedit_in_typebuf __ARGS((void));
-static int     put_in_typebuf __ARGS((char_u *s, int colon));
+static void    put_reedit_in_typebuf __ARGS((int silent));
+static int     put_in_typebuf __ARGS((char_u *s, int colon, int silent));
 static void    stuffescaped __ARGS((char_u *arg, int literally));
 #ifdef FEAT_MBYTE
 static void    mb_adjust_opend __ARGS((oparg_T *oap));
@@ -1120,10 +1120,11 @@ stuff_yank(regname, p)
  * return FAIL for failure, OK otherwise
  */
     int
-do_execreg(regname, colon, addcr)
+do_execreg(regname, colon, addcr, silent)
     int            regname;
     int            colon;              /* insert ':' before each line */
     int            addcr;              /* always add '\n' to end of line */
+    int            silent;             /* set "silent" flag in typeahead buffer */
 {
     static int lastc = NUL;
     long       i;
@@ -1173,9 +1174,9 @@ do_execreg(regname, colon, addcr)
            /* When in Visual mode "'<,'>" will be prepended to the command.
             * Remove it when it's already there. */
            if (VIsual_active && STRNCMP(p, "'<,'>", 5) == 0)
-               retval = put_in_typebuf(p + 5, TRUE);
+               retval = put_in_typebuf(p + 5, TRUE, silent);
            else
-               retval = put_in_typebuf(p, TRUE);
+               retval = put_in_typebuf(p, TRUE, silent);
        }
        vim_free(p);
     }
@@ -1186,7 +1187,7 @@ do_execreg(regname, colon, addcr)
        p = get_expr_line();
        if (p == NULL)
            return FAIL;
-       retval = put_in_typebuf(p, colon);
+       retval = put_in_typebuf(p, colon, silent);
        vim_free(p);
     }
 #endif
@@ -1198,7 +1199,7 @@ do_execreg(regname, colon, addcr)
            EMSG(_(e_noinstext));
            return FAIL;
        }
-       retval = put_in_typebuf(p, colon);
+       retval = put_in_typebuf(p, colon, silent);
        vim_free(p);
     }
     else
@@ -1213,20 +1214,20 @@ do_execreg(regname, colon, addcr)
        /*
         * Insert lines into typeahead buffer, from last one to first one.
         */
-       put_reedit_in_typebuf();
+       put_reedit_in_typebuf(silent);
        for (i = y_current->y_size; --i >= 0; )
        {
            /* insert NL between lines and after last line if type is MLINE */
            if (y_current->y_type == MLINE || i < y_current->y_size - 1
                                                                     || addcr)
            {
-               if (ins_typebuf((char_u *)"\n", remap, 0, TRUE, FALSE) == FAIL)
+               if (ins_typebuf((char_u *)"\n", remap, 0, TRUE, silent) == FAIL)
                    return FAIL;
            }
-           if (ins_typebuf(y_current->y_array[i], remap, 0, TRUE, FALSE)
+           if (ins_typebuf(y_current->y_array[i], remap, 0, TRUE, silent)
                                                                      == FAIL)
                return FAIL;
-           if (colon && ins_typebuf((char_u *)":", remap, 0, TRUE, FALSE)
+           if (colon && ins_typebuf((char_u *)":", remap, 0, TRUE, silent)
                                                                      == FAIL)
                return FAIL;
        }
@@ -1240,7 +1241,8 @@ do_execreg(regname, colon, addcr)
  * used only after other typeahead has been processed.
  */
     static void
-put_reedit_in_typebuf()
+put_reedit_in_typebuf(silent)
+    int                silent;
 {
     char_u     buf[3];
 
@@ -1257,25 +1259,26 @@ put_reedit_in_typebuf()
            buf[0] = restart_edit == 'I' ? 'i' : restart_edit;
            buf[1] = NUL;
        }
-       if (ins_typebuf(buf, REMAP_NONE, 0, TRUE, FALSE) == OK)
+       if (ins_typebuf(buf, REMAP_NONE, 0, TRUE, silent) == OK)
            restart_edit = NUL;
     }
 }
 
     static int
-put_in_typebuf(s, colon)
+put_in_typebuf(s, colon, silent)
     char_u     *s;
     int                colon;      /* add ':' before the line */
+    int                silent;
 {
     int                retval = OK;
 
-    put_reedit_in_typebuf();
+    put_reedit_in_typebuf(silent);
     if (colon)
-       retval = ins_typebuf((char_u *)"\n", REMAP_YES, 0, TRUE, FALSE);
+       retval = ins_typebuf((char_u *)"\n", REMAP_YES, 0, TRUE, silent);
     if (retval == OK)
-       retval = ins_typebuf(s, REMAP_YES, 0, TRUE, FALSE);
+       retval = ins_typebuf(s, REMAP_YES, 0, TRUE, silent);
     if (colon && retval == OK)
-       retval = ins_typebuf((char_u *)":", REMAP_YES, 0, TRUE, FALSE);
+       retval = ins_typebuf((char_u *)":", REMAP_YES, 0, TRUE, silent);
     return retval;
 }
 
index 881f9aebd01d820d98d49e7e91fe5b27cc828759..9a228cc60bdb1dd4c4ecdd8630eec1d2b3a709a9 100644 (file)
@@ -17,7 +17,7 @@ extern void *get_register __ARGS((int name, int copy));
 extern void put_register __ARGS((int name, void *reg));
 extern int yank_register_mline __ARGS((int regname));
 extern int do_record __ARGS((int c));
-extern int do_execreg __ARGS((int regname, int colon, int addcr));
+extern int do_execreg __ARGS((int regname, int colon, int addcr, int silent));
 extern int insert_reg __ARGS((int regname, int literally));
 extern int get_spec_reg __ARGS((int regname, char_u **argp, int *allocated, int errmsg));
 extern int cmdline_paste_reg __ARGS((int regname, int literally, int remcr));
index cc123b228fe7d33216fa700a70771e2564b0fee0..2c60189d9cdd80bdd35ac9ab02fad2c4c5972ee1 100644 (file)
@@ -666,6 +666,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    160,
 /**/
     159,
 /**/