]> granicus.if.org Git - vim/commitdiff
patch 8.0.0379: CTRL-Z and mouse click use CTRL-O unnecessary v8.0.0379
authorBram Moolenaar <Bram@vim.org>
Sun, 26 Feb 2017 18:09:05 +0000 (19:09 +0100)
committerBram Moolenaar <Bram@vim.org>
Sun, 26 Feb 2017 18:09:05 +0000 (19:09 +0100)
Problem:    CTRL-Z and mouse click use CTRL-O unnecessary.
Solution:   Remove stuffing CTRL-O. (James McCoy, closes #1453)

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

index 9a824322ffd4fa798a1fa8646d38d25859a7ffc0..6fc1e35ac8f27ab3868b3d227a75004da661107f 100644 (file)
@@ -1038,8 +1038,10 @@ doESCkey:
            if (!p_im)
                goto normalchar;        /* insert CTRL-Z as normal char */
            do_cmdline_cmd((char_u *)"stop");
-           c = Ctrl_O;
-           /*FALLTHROUGH*/
+#ifdef CURSOR_SHAPE
+           ui_cursor_shape();          /* may need to update cursor shape */
+#endif
+           continue;
 
        case Ctrl_O:    /* execute one command */
 #ifdef FEAT_COMPL_FUNC
index ce8ca531a0918a87417f58a8e9f01b6fa91e099e..c8385f6a841c11c377aca047b5d01adb5303ab49 100644 (file)
@@ -2982,8 +2982,6 @@ do_mouse(
                || (mod_mask & MOD_MASK_MULTI_CLICK) == MOD_MASK_2CLICK)
            && bt_quickfix(curbuf))
     {
-       if (State & INSERT)
-           stuffcharReadbuff(Ctrl_O);
        if (curwin->w_llist_ref == NULL)        /* quickfix window */
            do_cmdline_cmd((char_u *)".cc");
        else                                    /* location list window */
@@ -6193,10 +6191,12 @@ nv_down(cmdarg_T *cap)
 #if defined(FEAT_WINDOWS) && defined(FEAT_QUICKFIX)
     /* In a quickfix window a <CR> jumps to the error under the cursor. */
     if (bt_quickfix(curbuf) && cap->cmdchar == CAR)
+    {
        if (curwin->w_llist_ref == NULL)
            do_cmdline_cmd((char_u *)".cc");    /* quickfix window */
        else
            do_cmdline_cmd((char_u *)".ll");    /* location list window */
+    }
     else
 #endif
     {
index 026b829816cb2e305057a53245308b7b274944bf..21f416950d823d2e4b1f95dc0c16eaaa8e4a1fdf 100644 (file)
@@ -764,6 +764,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    379,
 /**/
     378,
 /**/