mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
updated for version 7.3.686
Problem: Using CTRL-\ e mappings is useful also when entering an expression, but it doesn't work. (Marcin Szamotulski) Solution: Allow using CTRL-\ e when entering an expression if it was not typed.
This commit is contained in:
@@ -667,9 +667,10 @@ getcmdline(firstc, count, indent)
|
|||||||
c = plain_vgetc();
|
c = plain_vgetc();
|
||||||
--no_mapping;
|
--no_mapping;
|
||||||
--allow_keys;
|
--allow_keys;
|
||||||
/* CTRL-\ e doesn't work when obtaining an expression. */
|
/* CTRL-\ e doesn't work when obtaining an expression, unless it
|
||||||
if (c != Ctrl_N && c != Ctrl_G
|
* is in a mapping. */
|
||||||
&& (c != 'e' || ccline.cmdfirstc == '='))
|
if (c != Ctrl_N && c != Ctrl_G && (c != 'e'
|
||||||
|
|| (ccline.cmdfirstc == '=' && KeyTyped)))
|
||||||
{
|
{
|
||||||
vungetc(c);
|
vungetc(c);
|
||||||
c = Ctrl_BSL;
|
c = Ctrl_BSL;
|
||||||
|
@@ -719,6 +719,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
686,
|
||||||
/**/
|
/**/
|
||||||
685,
|
685,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user