Re: bug in confirm() and default option

2006-09-06 Thread Bram Moolenaar
Hari Krishna Dara wrote: Many GUIs don't support a dialog without a button selected. Disabling the use of Enter to select a button isn't a good idea either. Thus for some GUIs it simply won't work to have a dialog without a default. I know for sure Windows native UI supports dialogs

Re: bug in confirm() and default option

2006-09-05 Thread Bram Moolenaar
Benji Fisher wrote: $ vim :echo confirm(Save changes?, Yes\nNo\nCancel, 0) user types CR 0 :gui :echo confirm(Save changes?, Yes\nNo\nCancel, 0) user types CR 1 I did it that way to make sure that I was actually using the same binary with and without the GUI

Re: bug in confirm() and default option

2006-09-05 Thread Hari Krishna Dara
On Tue, 5 Sep 2006 at 3:38pm, Bram Moolenaar wrote: Benji Fisher wrote: On Sun, Sep 03, 2006 at 11:54:11AM -0700, Hari Krishna Dara wrote: On Sun, 3 Sep 2006 at 8:21pm, Bram Moolenaar wrote: I have tried the win32 console version and it works properly there. Do you mean

Re: bug in confirm() and default option

2006-09-03 Thread Bram Moolenaar
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

Re: bug in confirm() and default option

2006-09-03 Thread Hari Krishna Dara
On Sun, 3 Sep 2006 at 12:53pm, Bram Moolenaar wrote: 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

Re: bug in confirm() and default option

2006-09-03 Thread Bram Moolenaar
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

Re: bug in confirm() and default option

2006-09-03 Thread Hari Krishna Dara
On Sun, 3 Sep 2006 at 8:21pm, Bram Moolenaar wrote: 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

bug in confirm() and default option

2006-09-02 Thread Hari Krishna Dara
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? -- Thanks, Hari

Re: bug in confirm() and default option

2006-09-02 Thread Benji Fisher
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

Re: bug in confirm() and default option

2006-09-02 Thread Hari Krishna Dara
On Sat, 2 Sep 2006 at 8:20am, Benji Fisher wrote: 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

Re: bug in confirm() and default option

2006-09-02 Thread Hari Krishna Dara
On Sat, 2 Sep 2006 at 2:25pm, Bram Moolenaar wrote: 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