jkunstle / rpms / vim

Forked from rpms/vim 3 years ago
Clone

Blame SOURCES/7.4.047

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