home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / unstable / patches / 6.2f.037 < prev    next >
Encoding:
Internet Message Format  |  2003-05-30  |  2.0 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.2f.037
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=ISO-8859-1
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 6.2f.037
  11. Problem:    When receiving a Netbeans command at the hit-enter or more prompt
  12.         the screen is redrawn but Vim is still waiting at the prompt.
  13. Solution:   Quit the prompt like a CTRL-C was typed.
  14. Files:        src/netbeans.c
  15.  
  16.  
  17. *** ../vim-6.2f.036/src/netbeans.c    Sat May 31 12:03:18 2003
  18. --- src/netbeans.c    Sat May 31 19:51:02 2003
  19. ***************
  20. *** 1607,1612 ****
  21. --- 1607,1621 ----
  22.           out_flush();
  23.           gui_update_cursor(TRUE, FALSE);
  24.           gui_mch_flush();
  25. +         /* Quit a hit-return or more prompt. */
  26. +         if (State == HITRETURN || State == ASKMORE)
  27. +         {
  28. +         add_to_input_buf((char_u *)"\003", 1);
  29. + #ifdef FEAT_GUI_GTK
  30. +         if (gtk_main_level() > 0)
  31. +             gtk_main_quit();
  32. + #endif
  33. +         }
  34.   /* =====================================================================*/
  35.       }
  36.       else if (streq((char *)cmd, "close"))
  37. ***************
  38. *** 1893,1898 ****
  39. --- 1902,1916 ----
  40.       out_flush();
  41.       gui_update_cursor(TRUE, FALSE);
  42.       gui_mch_flush();
  43. +     /* Quit a hit-return or more prompt. */
  44. +     if (State == HITRETURN || State == ASKMORE)
  45. +     {
  46. +         add_to_input_buf((char_u *)"\003", 1);
  47. + #ifdef FEAT_GUI_GTK
  48. +         if (gtk_main_level() > 0)
  49. +         gtk_main_quit();
  50. + #endif
  51. +     }
  52.       }
  53.   
  54.       return retval;
  55. *** ../vim-6.2f.036/src/version.c    Sat May 31 18:13:45 2003
  56. --- src/version.c    Sat May 31 19:57:17 2003
  57. ***************
  58. *** 632,633 ****
  59. --- 632,635 ----
  60.   {   /* Add new patch number below this line */
  61. + /**/
  62. +     37,
  63.   /**/
  64.  
  65. -- 
  66. On the other hand, you have different fingers.
  67.                                       -- Steven Wright
  68.  
  69.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  70. ///          Creator of Vim - Vi IMproved -- http://www.Vim.org          \\\
  71. \\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
  72.  \\\     Help AIDS victims, buy at Amazon -- http://ICCF.nl/click1.html ///
  73.