Karsten Hopp 2a3f8b
To: vim_dev@googlegroups.com
Karsten Hopp 2a3f8b
Subject: Patch 7.3.604
Karsten Hopp 2a3f8b
Fcc: outbox
Karsten Hopp 2a3f8b
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 2a3f8b
Mime-Version: 1.0
Karsten Hopp 2a3f8b
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 2a3f8b
Content-Transfer-Encoding: 8bit
Karsten Hopp 2a3f8b
------------
Karsten Hopp 2a3f8b
Karsten Hopp 2a3f8b
Patch 7.3.604
Karsten Hopp 2a3f8b
Problem:    inputdialog() doesn't use the cancel argument in the console.
Karsten Hopp 2a3f8b
	    (David Fishburn)
Karsten Hopp 2a3f8b
Solution:   Use the third argument. (Christian Brabant)
Karsten Hopp 2a3f8b
Files:	    src/eval.c
Karsten Hopp 2a3f8b
Karsten Hopp 2a3f8b
Karsten Hopp 2a3f8b
*** ../vim-7.3.603/src/eval.c	2012-07-16 17:31:48.000000000 +0200
Karsten Hopp 2a3f8b
--- src/eval.c	2012-07-16 19:20:47.000000000 +0200
Karsten Hopp 2a3f8b
***************
Karsten Hopp 2a3f8b
*** 12940,12945 ****
Karsten Hopp 2a3f8b
--- 12940,12946 ----
Karsten Hopp 2a3f8b
  		int	xp_namelen;
Karsten Hopp 2a3f8b
  		long	argt;
Karsten Hopp 2a3f8b
  
Karsten Hopp 2a3f8b
+ 		/* input() with a third argument: completion */
Karsten Hopp 2a3f8b
  		rettv->vval.v_string = NULL;
Karsten Hopp 2a3f8b
  
Karsten Hopp 2a3f8b
  		xp_name = get_tv_string_buf_chk(&argvars[2], buf);
Karsten Hopp 2a3f8b
***************
Karsten Hopp 2a3f8b
*** 12958,12963 ****
Karsten Hopp 2a3f8b
--- 12959,12969 ----
Karsten Hopp 2a3f8b
  	    rettv->vval.v_string =
Karsten Hopp 2a3f8b
  		getcmdline_prompt(inputsecret_flag ? NUL : '@', p, echo_attr,
Karsten Hopp 2a3f8b
  				  xp_type, xp_arg);
Karsten Hopp 2a3f8b
+ 	if (rettv->vval.v_string == NULL
Karsten Hopp 2a3f8b
+ 		&& argvars[1].v_type != VAR_UNKNOWN
Karsten Hopp 2a3f8b
+ 		&& argvars[2].v_type != VAR_UNKNOWN)
Karsten Hopp 2a3f8b
+ 	    rettv->vval.v_string = vim_strsave(get_tv_string_buf(
Karsten Hopp 2a3f8b
+ 							   &argvars[2], buf));
Karsten Hopp 2a3f8b
  
Karsten Hopp 2a3f8b
  	vim_free(xp_arg);
Karsten Hopp 2a3f8b
  
Karsten Hopp 2a3f8b
*** ../vim-7.3.603/src/version.c	2012-07-16 17:31:48.000000000 +0200
Karsten Hopp 2a3f8b
--- src/version.c	2012-07-16 19:23:11.000000000 +0200
Karsten Hopp 2a3f8b
***************
Karsten Hopp 2a3f8b
*** 716,717 ****
Karsten Hopp 2a3f8b
--- 716,719 ----
Karsten Hopp 2a3f8b
  {   /* Add new patch number below this line */
Karsten Hopp 2a3f8b
+ /**/
Karsten Hopp 2a3f8b
+     604,
Karsten Hopp 2a3f8b
  /**/
Karsten Hopp 2a3f8b
Karsten Hopp 2a3f8b
-- 
Karsten Hopp 2a3f8b
hundred-and-one symptoms of being an internet addict:
Karsten Hopp 2a3f8b
135. You cut classes or miss work so you can stay home and browse the web.
Karsten Hopp 2a3f8b
Karsten Hopp 2a3f8b
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 2a3f8b
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 2a3f8b
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 2a3f8b
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///