Patch 7.4.047
Problem:    When using input() in a function invoked by a mapping it doesn't
            work.
Solution:   Temporarily reset ex_normal_busy. (Yasuhiro Matsumoto)
Files:      src/eval.c


*** ../vim-7.4.046/src/eval.c   2013-09-29 21:11:00.000000000 +0200
--- src/eval.c  2013-10-02 16:40:52.000000000 +0200
***************
*** 13054,13062 ****
--- 13054,13071 ----
        }
  
        if (defstr != NULL)
+       {
+ # ifdef FEAT_EX_EXTRA
+           int save_ex_normal_busy = ex_normal_busy;
+           ex_normal_busy = 0;
+ # endif
            rettv->vval.v_string =
                getcmdline_prompt(inputsecret_flag ? NUL : '@', p, echo_attr,
                                  xp_type, xp_arg);
+ # ifdef FEAT_EX_EXTRA
+           ex_normal_busy = save_ex_normal_busy;
+ # endif
+       }
        if (inputdialog && rettv->vval.v_string == NULL
                && argvars[1].v_type != VAR_UNKNOWN
                && argvars[2].v_type != VAR_UNKNOWN)
*** ../vim-7.4.046/src/version.c        2013-10-02 14:25:39.000000000 +0200
--- src/version.c       2013-10-02 16:45:45.000000000 +0200
***************
*** 740,741 ****
--- 740,743 ----
  {   /* Add new patch number below this line */
+ /**/
+     47,
  /**/

-- 
Not too long ago, a keyboard was something to make music with...

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Raspunde prin e-mail lui