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