lkundrak / rpms / vim

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