Neil Bird wrote: > Around about 03/05/06 14:38, Bram Moolenaar typed ... > > 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. > > That may have been the case with GTK1, but under GTK2 it seems to work by > itself. The vim code in question is GTK2-specific, so removing the > hard-coded '1' return when <Enter> is typed lets GTK2 do the right > thing. Seems to work as expected. > > Attached patch is against 7.0e07.
Great, thanks. I didn't expect code would have to be removed. I'll put the removed code in #ifndef FEAT_GTK2, I think it's still needed for GTK 1, where it worked correctly as-is. -- Q: What is the difference betwee open-source and commercial software? A: If you have a problem with commercial software you can call a phone number and they will tell you it might be solved in a future version. For open-source software there isn't a phone number to call, but you get the solution within a day. /// 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 ///