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