Hi Bram!

On Mo, 16 Jul 2012, Bram Moolenaar wrote:

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

No it isn't needed. Just wanted to make it clear, what the return value 
is.

regards,
Christian
-- 

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