Loading ...
Sorry, an error occurred while loading the content.

73073Re: bug in confirm() and default option

Expand Messages
  • Benji Fisher
    Sep 2, 2006
    • 0 Attachment
      On Sat, Sep 02, 2006 at 12:05:57AM -0700, Hari Krishna Dara wrote:
      >
      > 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?

      I get the same behavior on Linux (FC2). In vim (not gvim),

      :echo confirm("Save changes?", "&Yes\n&No\n&Cancel", 0)

      echoes 0 if I hit <CR> without making a choice.

      HTH --Benji Fisher
    • Show all 15 messages in this topic