]> granicus.if.org Git - vim/commitdiff
patch 8.0.0208: internally used commands end up in history v8.0.0208
authorBram Moolenaar <Bram@vim.org>
Fri, 20 Jan 2017 20:51:53 +0000 (21:51 +0100)
committerBram Moolenaar <Bram@vim.org>
Fri, 20 Jan 2017 20:51:53 +0000 (21:51 +0100)
Problem:    Internally used commands for CTRL-Z and mouse click end up in
            history. (Matthew Malcomson)
Solution:   Use do_cmdline_cmd() instead of stuffing them in the readahead
            buffer. (James McCoy, closes #1395)

src/edit.c
src/normal.c
src/version.c

index 51a12b3301b2fb90026413caebd0aa9bc6cacd0e..8e6ca5da9d549faf78bdda89122a229ffd787fcc 100644 (file)
@@ -1025,7 +1025,7 @@ doESCkey:
        case Ctrl_Z:    /* suspend when 'insertmode' set */
            if (!p_im)
                goto normalchar;        /* insert CTRL-Z as normal char */
-           stuffReadbuff((char_u *)":st\r");
+           do_cmdline_cmd((char_u *)"stop");
            c = Ctrl_O;
            /*FALLTHROUGH*/
 
index 3456b73be40aeab8aee83e61dab0cc3e148f54a6..8724553a9a3d4c20655ebb167cab8891db6bc32e 100644 (file)
@@ -2982,9 +2982,9 @@ do_mouse(
        if (State & INSERT)
            stuffcharReadbuff(Ctrl_O);
        if (curwin->w_llist_ref == NULL)        /* quickfix window */
-           stuffReadbuff((char_u *)":.cc\n");
+           do_cmdline_cmd((char_u *)".cc");
        else                                    /* location list window */
-           stuffReadbuff((char_u *)":.ll\n");
+           do_cmdline_cmd((char_u *)".ll");
        got_click = FALSE;              /* ignore drag&release now */
     }
 #endif
index e350e9c110d6f6b1e495fba610fbd56125231a35..c2a80dc5ffe054abf75a2768ec889d860364a592 100644 (file)
@@ -764,6 +764,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    208,
 /**/
     207,
 /**/