Neil Bird -
> Not got the time ATM to check it in a later release (will try to), but in
> the mean time, with a Linux GTK build of 7.0e07 'confirm()' always returns
> the
> default (1 in my case) nomatter the selection *if the selection is made via
> the keyboard (tab+return)*. Mouse selection returns the correct value.
>
> E.g.:
>
> :echo confirm("What?", "A\nB\nC", 1, "Question")
This is a known problem with GTK. When you hit Enter Vim doesn't know
what button was highlighted. Clicking with the mouse and using the
shortcut key does work.
I don't know how to fix this, the GTK documentation isn't clear about
how it should work.
- Bram
--
Never enter the boss's office unless it's absolutely necessary. Every boss
saves one corner of the desk for useless assignments that are doled out like
Halloween candy to each visitor.
(Scott Adams - The Dilbert principle)
/// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ download, build and distribute -- http://www.A-A-P.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///