|
Karsten Hopp |
0125b1 |
To: vim-dev@vim.org
|
|
Karsten Hopp |
0125b1 |
Subject: Patch 7.2.071
|
|
Karsten Hopp |
0125b1 |
Fcc: outbox
|
|
Karsten Hopp |
0125b1 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
0125b1 |
Mime-Version: 1.0
|
|
Karsten Hopp |
0125b1 |
Content-Type: text/plain; charset=ISO-8859-1
|
|
Karsten Hopp |
0125b1 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
0125b1 |
------------
|
|
Karsten Hopp |
0125b1 |
|
|
Karsten Hopp |
0125b1 |
Patch 7.2.071 (extra)
|
|
Karsten Hopp |
0125b1 |
Problem: Win32: Handling netbeans events while Vim is busy updating the
|
|
Karsten Hopp |
0125b1 |
screen may cause a crash.
|
|
Karsten Hopp |
0125b1 |
Solution: Like with GTK, only handle netbeans messages in the main loop.
|
|
Karsten Hopp |
0125b1 |
(Xavier de Gaye)
|
|
Karsten Hopp |
0125b1 |
Files: src/gui_w48.c, src/netbeans.c
|
|
Karsten Hopp |
0125b1 |
|
|
Karsten Hopp |
0125b1 |
|
|
Karsten Hopp |
0125b1 |
*** ../vim-7.2.070/src/gui_w48.c Thu Nov 20 17:09:09 2008
|
|
Karsten Hopp |
0125b1 |
--- src/gui_w48.c Thu Dec 11 23:47:18 2008
|
|
Karsten Hopp |
0125b1 |
***************
|
|
Karsten Hopp |
0125b1 |
*** 1937,1942 ****
|
|
Karsten Hopp |
0125b1 |
--- 1937,1947 ----
|
|
Karsten Hopp |
0125b1 |
s_need_activate = FALSE;
|
|
Karsten Hopp |
0125b1 |
}
|
|
Karsten Hopp |
0125b1 |
|
|
Karsten Hopp |
0125b1 |
+ #ifdef FEAT_NETBEANS_INTG
|
|
Karsten Hopp |
0125b1 |
+ /* Process the queued netbeans messages. */
|
|
Karsten Hopp |
0125b1 |
+ netbeans_parse_messages();
|
|
Karsten Hopp |
0125b1 |
+ #endif
|
|
Karsten Hopp |
0125b1 |
+
|
|
Karsten Hopp |
0125b1 |
/*
|
|
Karsten Hopp |
0125b1 |
* Don't use gui_mch_update() because then we will spin-lock until a
|
|
Karsten Hopp |
0125b1 |
* char arrives, instead we use GetMessage() to hang until an
|
|
Karsten Hopp |
0125b1 |
*** ../vim-7.2.070/src/netbeans.c Fri Nov 28 21:26:50 2008
|
|
Karsten Hopp |
0125b1 |
--- src/netbeans.c Sun Nov 30 12:07:00 2008
|
|
Karsten Hopp |
0125b1 |
***************
|
|
Karsten Hopp |
0125b1 |
*** 769,779 ****
|
|
Karsten Hopp |
0125b1 |
return; /* don't try to parse it */
|
|
Karsten Hopp |
0125b1 |
}
|
|
Karsten Hopp |
0125b1 |
|
|
Karsten Hopp |
0125b1 |
! #ifdef FEAT_GUI_GTK
|
|
Karsten Hopp |
0125b1 |
if (gtk_main_level() > 0)
|
|
Karsten Hopp |
0125b1 |
gtk_main_quit();
|
|
Karsten Hopp |
0125b1 |
#else
|
|
Karsten Hopp |
0125b1 |
! /* Parse the messages, but avoid recursion. */
|
|
Karsten Hopp |
0125b1 |
if (level == 1)
|
|
Karsten Hopp |
0125b1 |
netbeans_parse_messages();
|
|
Karsten Hopp |
0125b1 |
|
|
Karsten Hopp |
0125b1 |
--- 769,782 ----
|
|
Karsten Hopp |
0125b1 |
return; /* don't try to parse it */
|
|
Karsten Hopp |
0125b1 |
}
|
|
Karsten Hopp |
0125b1 |
|
|
Karsten Hopp |
0125b1 |
! #if defined(FEAT_GUI_GTK) || defined(FEAT_GUI_W32)
|
|
Karsten Hopp |
0125b1 |
! /* Let the main loop handle messages. */
|
|
Karsten Hopp |
0125b1 |
! # ifdef FEAT_GUI_GTK
|
|
Karsten Hopp |
0125b1 |
if (gtk_main_level() > 0)
|
|
Karsten Hopp |
0125b1 |
gtk_main_quit();
|
|
Karsten Hopp |
0125b1 |
+ # endif
|
|
Karsten Hopp |
0125b1 |
#else
|
|
Karsten Hopp |
0125b1 |
! /* Parse the messages now, but avoid recursion. */
|
|
Karsten Hopp |
0125b1 |
if (level == 1)
|
|
Karsten Hopp |
0125b1 |
netbeans_parse_messages();
|
|
Karsten Hopp |
0125b1 |
|
|
Karsten Hopp |
0125b1 |
*** ../vim-7.2.070/src/version.c Sun Dec 21 13:02:47 2008
|
|
Karsten Hopp |
0125b1 |
--- src/version.c Wed Dec 24 12:18:59 2008
|
|
Karsten Hopp |
0125b1 |
***************
|
|
Karsten Hopp |
0125b1 |
*** 678,679 ****
|
|
Karsten Hopp |
0125b1 |
--- 678,681 ----
|
|
Karsten Hopp |
0125b1 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
0125b1 |
+ /**/
|
|
Karsten Hopp |
0125b1 |
+ 71,
|
|
Karsten Hopp |
0125b1 |
/**/
|
|
Karsten Hopp |
0125b1 |
|
|
Karsten Hopp |
0125b1 |
--
|
|
Karsten Hopp |
0125b1 |
No children may attend school with their breath smelling of "wild onions."
|
|
Karsten Hopp |
0125b1 |
[real standing law in West Virginia, United States of America]
|
|
Karsten Hopp |
0125b1 |
|
|
Karsten Hopp |
0125b1 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
0125b1 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
0125b1 |
\\\ download, build and distribute -- http://www.A-A-P.org ///
|
|
Karsten Hopp |
0125b1 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|