73073Re: bug in confirm() and default option
- Sep 2, 2006On Sat, Sep 02, 2006 at 12:05:57AM -0700, Hari Krishna Dara wrote:
>I get the same behavior on Linux (FC2). In vim (not gvim),
> According to the help, if you specify a value of 0 for default, none of
> the choices should be selected, but this is not how it is working. I
> tried both on win32 and cygwin (X) gvim and both default to 1 instead.
> Is there another trick to not select any of the choices?
:echo confirm("Save changes?", "&Yes\n&No\n&Cancel", 0)
echoes 0 if I hit <CR> without making a choice.
HTH --Benji Fisher
- << Previous post in topic Next post in topic >>