8b9a1c
To: vim_dev@googlegroups.com
8b9a1c
Subject: Patch 7.4.047
8b9a1c
Fcc: outbox
8b9a1c
From: Bram Moolenaar <Bram@moolenaar.net>
8b9a1c
Mime-Version: 1.0
8b9a1c
Content-Type: text/plain; charset=UTF-8
8b9a1c
Content-Transfer-Encoding: 8bit
8b9a1c
------------
8b9a1c
8b9a1c
Patch 7.4.047
8b9a1c
Problem:    When using input() in a function invoked by a mapping it doesn't
8b9a1c
	    work.
8b9a1c
Solution:   Temporarily reset ex_normal_busy. (Yasuhiro Matsumoto)
8b9a1c
Files:	    src/eval.c
8b9a1c
8b9a1c
8b9a1c
*** ../vim-7.4.046/src/eval.c	2013-09-29 21:11:00.000000000 +0200
8b9a1c
--- src/eval.c	2013-10-02 16:40:52.000000000 +0200
8b9a1c
***************
8b9a1c
*** 13054,13062 ****
8b9a1c
--- 13054,13071 ----
8b9a1c
  	}
8b9a1c
  
8b9a1c
  	if (defstr != NULL)
8b9a1c
+ 	{
8b9a1c
+ # ifdef FEAT_EX_EXTRA
8b9a1c
+ 	    int save_ex_normal_busy = ex_normal_busy;
8b9a1c
+ 	    ex_normal_busy = 0;
8b9a1c
+ # endif
8b9a1c
  	    rettv->vval.v_string =
8b9a1c
  		getcmdline_prompt(inputsecret_flag ? NUL : '@', p, echo_attr,
8b9a1c
  				  xp_type, xp_arg);
8b9a1c
+ # ifdef FEAT_EX_EXTRA
8b9a1c
+ 	    ex_normal_busy = save_ex_normal_busy;
8b9a1c
+ # endif
8b9a1c
+ 	}
8b9a1c
  	if (inputdialog && rettv->vval.v_string == NULL
8b9a1c
  		&& argvars[1].v_type != VAR_UNKNOWN
8b9a1c
  		&& argvars[2].v_type != VAR_UNKNOWN)
8b9a1c
*** ../vim-7.4.046/src/version.c	2013-10-02 14:25:39.000000000 +0200
8b9a1c
--- src/version.c	2013-10-02 16:45:45.000000000 +0200
8b9a1c
***************
8b9a1c
*** 740,741 ****
8b9a1c
--- 740,743 ----
8b9a1c
  {   /* Add new patch number below this line */
8b9a1c
+ /**/
8b9a1c
+     47,
8b9a1c
  /**/
8b9a1c
8b9a1c
-- 
8b9a1c
Not too long ago, a keyboard was something to make music with...
8b9a1c
8b9a1c
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
8b9a1c
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
8b9a1c
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
8b9a1c
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///