To: vim-dev@vim.org Subject: Patch 6.2f.037 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit ------------ Patch 6.2f.037 Problem: When receiving a Netbeans command at the hit-enter or more prompt the screen is redrawn but Vim is still waiting at the prompt. Solution: Quit the prompt like a CTRL-C was typed. Files: src/netbeans.c *** ../vim-6.2f.036/src/netbeans.c Sat May 31 12:03:18 2003 --- src/netbeans.c Sat May 31 19:51:02 2003 *************** *** 1607,1612 **** --- 1607,1621 ---- out_flush(); gui_update_cursor(TRUE, FALSE); gui_mch_flush(); + /* Quit a hit-return or more prompt. */ + if (State == HITRETURN || State == ASKMORE) + { + add_to_input_buf((char_u *)"\003", 1); + #ifdef FEAT_GUI_GTK + if (gtk_main_level() > 0) + gtk_main_quit(); + #endif + } /* =====================================================================*/ } else if (streq((char *)cmd, "close")) *************** *** 1893,1898 **** --- 1902,1916 ---- out_flush(); gui_update_cursor(TRUE, FALSE); gui_mch_flush(); + /* Quit a hit-return or more prompt. */ + if (State == HITRETURN || State == ASKMORE) + { + add_to_input_buf((char_u *)"\003", 1); + #ifdef FEAT_GUI_GTK + if (gtk_main_level() > 0) + gtk_main_quit(); + #endif + } } return retval; *** ../vim-6.2f.036/src/version.c Sat May 31 18:13:45 2003 --- src/version.c Sat May 31 19:57:17 2003 *************** *** 632,633 **** --- 632,635 ---- { /* Add new patch number below this line */ + /**/ + 37, /**/ -- On the other hand, you have different fingers. -- Steven Wright /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// Creator of Vim - Vi IMproved -- http://www.Vim.org \\\ \\\ Project leader for A-A-P -- http://www.A-A-P.org /// \\\ Help AIDS victims, buy at Amazon -- http://ICCF.nl/click1.html ///