Mercurial > vim
comparison src/normal.c @ 10980:5362b4b6042c v8.0.0379
patch 8.0.0379: CTRL-Z and mouse click use CTRL-O unnecessary
commit https://github.com/vim/vim/commit/74a47162a07fddb532f4bead212f6c80ef474ae7
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Feb 26 19:09:05 2017 +0100
patch 8.0.0379: CTRL-Z and mouse click use CTRL-O unnecessary
Problem: CTRL-Z and mouse click use CTRL-O unnecessary.
Solution: Remove stuffing CTRL-O. (James McCoy, closes https://github.com/vim/vim/issues/1453)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 26 Feb 2017 19:15:04 +0100 |
parents | e366b968bf08 |
children | 778c10516955 |
comparison
equal
deleted
inserted
replaced
10979:cb1c85dc01d3 | 10980:5362b4b6042c |
---|---|
2980 */ | 2980 */ |
2981 else if (((mod_mask & MOD_MASK_CTRL) | 2981 else if (((mod_mask & MOD_MASK_CTRL) |
2982 || (mod_mask & MOD_MASK_MULTI_CLICK) == MOD_MASK_2CLICK) | 2982 || (mod_mask & MOD_MASK_MULTI_CLICK) == MOD_MASK_2CLICK) |
2983 && bt_quickfix(curbuf)) | 2983 && bt_quickfix(curbuf)) |
2984 { | 2984 { |
2985 if (State & INSERT) | |
2986 stuffcharReadbuff(Ctrl_O); | |
2987 if (curwin->w_llist_ref == NULL) /* quickfix window */ | 2985 if (curwin->w_llist_ref == NULL) /* quickfix window */ |
2988 do_cmdline_cmd((char_u *)".cc"); | 2986 do_cmdline_cmd((char_u *)".cc"); |
2989 else /* location list window */ | 2987 else /* location list window */ |
2990 do_cmdline_cmd((char_u *)".ll"); | 2988 do_cmdline_cmd((char_u *)".ll"); |
2991 got_click = FALSE; /* ignore drag&release now */ | 2989 got_click = FALSE; /* ignore drag&release now */ |
6191 } | 6189 } |
6192 else | 6190 else |
6193 #if defined(FEAT_WINDOWS) && defined(FEAT_QUICKFIX) | 6191 #if defined(FEAT_WINDOWS) && defined(FEAT_QUICKFIX) |
6194 /* In a quickfix window a <CR> jumps to the error under the cursor. */ | 6192 /* In a quickfix window a <CR> jumps to the error under the cursor. */ |
6195 if (bt_quickfix(curbuf) && cap->cmdchar == CAR) | 6193 if (bt_quickfix(curbuf) && cap->cmdchar == CAR) |
6194 { | |
6196 if (curwin->w_llist_ref == NULL) | 6195 if (curwin->w_llist_ref == NULL) |
6197 do_cmdline_cmd((char_u *)".cc"); /* quickfix window */ | 6196 do_cmdline_cmd((char_u *)".cc"); /* quickfix window */ |
6198 else | 6197 else |
6199 do_cmdline_cmd((char_u *)".ll"); /* location list window */ | 6198 do_cmdline_cmd((char_u *)".ll"); /* location list window */ |
6199 } | |
6200 else | 6200 else |
6201 #endif | 6201 #endif |
6202 { | 6202 { |
6203 #ifdef FEAT_CMDWIN | 6203 #ifdef FEAT_CMDWIN |
6204 /* In the cmdline window a <CR> executes the command. */ | 6204 /* In the cmdline window a <CR> executes the command. */ |