4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: GTK: When using the netrw plugin and doing ":gui" Vim hangs.
12 Solution: Stop getting a selection after three seconds. This is a hack.
13 Files: src/gui_gtk_x11.c
16 *** ../vim-7.1.208/src/gui_gtk_x11.c Fri Oct 19 14:32:50 2007
17 --- src/gui_gtk_x11.c Sun Jan 6 15:15:52 2008
26 for (i = 0; i < N_SELECTION_TARGETS; ++i)
30 cbd->gtk_sel_atom, target,
31 (guint32)GDK_CURRENT_TIME);
33 ! while (received_selection == RS_NONE)
34 gtk_main(); /* wait for selection_received_cb */
36 if (received_selection != RS_FAIL)
38 cbd->gtk_sel_atom, target,
39 (guint32)GDK_CURRENT_TIME);
41 ! /* Hack: Wait up to three seconds for the selection. A hang was
42 ! * noticed here when using the netrw plugin combined with ":gui"
43 ! * during the FocusGained event. */
45 ! while (received_selection == RS_NONE && time(NULL) < start + 3)
46 gtk_main(); /* wait for selection_received_cb */
48 if (received_selection != RS_FAIL)
49 *** ../vim-7.1.208/src/version.c Sat Jan 5 22:15:21 2008
50 --- src/version.c Sun Jan 6 15:14:48 2008
54 { /* Add new patch number below this line */
60 BLACK KNIGHT: I move for no man.
63 [ARTHUR chops the BLACK KNIGHT's left arm off]
64 ARTHUR: Now stand aside, worthy adversary.
65 BLACK KNIGHT: 'Tis but a scratch.
66 The Quest for the Holy Grail (Monty Python)
68 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
69 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
70 \\\ download, build and distribute -- http://www.A-A-P.org ///
71 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///