Christian Brabandt wrote:

> On Mon, July 16, 2012 10:17, John Beckett wrote:
> > I don't know, but a short problem description follows.
> >
> > " In gvim, the following shows "cancel" if press Esc to cancel.
> > :set guioptions&
> > :echo '"'.inputdialog('Enter text ', 'default', 'cancel').'"'
> >
> > " But the following shows "" if press Esc to cancel.
> > :set guioptions+=c
> > :echo '"'.inputdialog('Enter text ', 'default', 'cancel').'"'
> >
> > According to ':help inputdialog()' both should give "cancel".
> > Why is there a difference?
> 
> Because the console version of inputdialog() does simply not use
> the provided cancel argument ;)

Thanks.  Moving the setting of v_type to VAR_STRING isn't needed, right?

-- 
hundred-and-one symptoms of being an internet addict:
134. You consider bandwidth to be more important than carats.

 /// 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

Raspunde prin e-mail lui