Karsten Hopp fe0402
To: vim_dev@googlegroups.com
Karsten Hopp fe0402
Subject: Patch 7.3.1309
Karsten Hopp fe0402
Fcc: outbox
Karsten Hopp fe0402
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp fe0402
Mime-Version: 1.0
Karsten Hopp fe0402
Content-Type: text/plain; charset=UTF-8
Karsten Hopp fe0402
Content-Transfer-Encoding: 8bit
Karsten Hopp fe0402
------------
Karsten Hopp fe0402
Karsten Hopp fe0402
Patch 7.3.1309
Karsten Hopp fe0402
Problem:    When a script defines a function the flag to wait for the user to
Karsten Hopp fe0402
	    hit enter is reset.
Karsten Hopp fe0402
Solution:   Restore the flag. (Yasuhiro Matsumoto)  Except when the user was
Karsten Hopp fe0402
	    typing the function.
Karsten Hopp fe0402
Files:	    src/eval.c
Karsten Hopp fe0402
Karsten Hopp fe0402
Karsten Hopp fe0402
*** ../vim-7.3.1308/src/eval.c	2013-07-04 20:25:34.000000000 +0200
Karsten Hopp fe0402
--- src/eval.c	2013-07-05 18:23:42.000000000 +0200
Karsten Hopp fe0402
***************
Karsten Hopp fe0402
*** 21108,21113 ****
Karsten Hopp fe0402
--- 21108,21114 ----
Karsten Hopp fe0402
      int		j;
Karsten Hopp fe0402
      int		c;
Karsten Hopp fe0402
      int		saved_did_emsg;
Karsten Hopp fe0402
+     int		saved_wait_return = need_wait_return;
Karsten Hopp fe0402
      char_u	*name = NULL;
Karsten Hopp fe0402
      char_u	*p;
Karsten Hopp fe0402
      char_u	*arg;
Karsten Hopp fe0402
***************
Karsten Hopp fe0402
*** 21439,21445 ****
Karsten Hopp fe0402
--- 21440,21449 ----
Karsten Hopp fe0402
      for (;;)
Karsten Hopp fe0402
      {
Karsten Hopp fe0402
  	if (KeyTyped)
Karsten Hopp fe0402
+ 	{
Karsten Hopp fe0402
  	    msg_scroll = TRUE;
Karsten Hopp fe0402
+ 	    saved_wait_return = FALSE;
Karsten Hopp fe0402
+ 	}
Karsten Hopp fe0402
  	need_wait_return = FALSE;
Karsten Hopp fe0402
  	sourcing_lnum_off = sourcing_lnum;
Karsten Hopp fe0402
  
Karsten Hopp fe0402
***************
Karsten Hopp fe0402
*** 21750,21755 ****
Karsten Hopp fe0402
--- 21754,21760 ----
Karsten Hopp fe0402
      vim_free(fudi.fd_newkey);
Karsten Hopp fe0402
      vim_free(name);
Karsten Hopp fe0402
      did_emsg |= saved_did_emsg;
Karsten Hopp fe0402
+     need_wait_return |= saved_wait_return;
Karsten Hopp fe0402
  }
Karsten Hopp fe0402
  
Karsten Hopp fe0402
  /*
Karsten Hopp fe0402
*** ../vim-7.3.1308/src/version.c	2013-07-04 22:50:33.000000000 +0200
Karsten Hopp fe0402
--- src/version.c	2013-07-05 18:25:06.000000000 +0200
Karsten Hopp fe0402
***************
Karsten Hopp fe0402
*** 730,731 ****
Karsten Hopp fe0402
--- 730,733 ----
Karsten Hopp fe0402
  {   /* Add new patch number below this line */
Karsten Hopp fe0402
+ /**/
Karsten Hopp fe0402
+     1309,
Karsten Hopp fe0402
  /**/
Karsten Hopp fe0402
Karsten Hopp fe0402
-- 
Karsten Hopp fe0402
BROTHER MAYNARD: Armaments Chapter Two Verses Nine to Twenty One.
Karsten Hopp fe0402
ANOTHER MONK:    And St.  Attila raised his hand grenade up on high saying "O
Karsten Hopp fe0402
                 Lord bless this thy hand grenade that with it thou mayest
Karsten Hopp fe0402
                 blow thine enemies to tiny bits, in thy mercy. "and the Lord
Karsten Hopp fe0402
                 did grin and people did feast upon the lambs and sloths and
Karsten Hopp fe0402
                 carp and anchovies and orang-utans and breakfast cereals and
Karsten Hopp fe0402
                 fruit bats and...
Karsten Hopp fe0402
BROTHER MAYNARD: Skip a bit brother ...
Karsten Hopp fe0402
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
Karsten Hopp fe0402
Karsten Hopp fe0402
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp fe0402
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp fe0402
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp fe0402
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///