4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: When using the XSMP protocol and reading from stdin Vim may wait
12 for a key to be pressed.
13 Solution: Avoid that RealWaitForChar() is used recursively.
17 *** ../vim-6.2.017/src/os_unix.c Thu Jun 5 12:24:08 2003
18 --- src/os_unix.c Wed Jul 2 20:59:55 2003
24 #if defined(FEAT_XCLIPBOARD) || defined(USE_XSMP)
25 + static int busy = FALSE;
27 /* May retry getting characters after an event was handled. */
34 gettimeofday(&start_tv, NULL);
37 + /* Handle being called recursively. This may happen for the session
38 + * manager stuff, it may save the file, which does a breakcheck. */
47 if (xsmp_idx >= 0 && (fds[xsmp_idx].revents & (POLLIN | POLLHUP)))
49 if (fds[xsmp_idx].revents & POLLIN)
52 xsmp_handle_requests();
55 else if (fds[xsmp_idx].revents & POLLHUP)
62 else if (FD_ISSET(xsmp_icefd, &rfds))
65 xsmp_handle_requests();
68 finished = FALSE; /* keep going if event was only one */
75 ! /* Handle already biung in saveyourself */
76 if (xsmp.save_yourself)
77 SmcSaveYourselfDone(smc_conn, True);
78 xsmp.save_yourself = True;
83 ! /* Handle already being in saveyourself */
84 if (xsmp.save_yourself)
85 SmcSaveYourselfDone(smc_conn, True);
86 xsmp.save_yourself = True;
90 xsmp_handle_requests()
94 if (IceProcessMessages(xsmp.iceconn, NULL, &rep)
95 == IceProcessMessagesIOError)
97 *** ../vim-6.2.017/src/version.c Mon Jun 30 22:31:05 2003
98 --- src/version.c Wed Jul 2 21:34:38 2003
102 { /* Add new patch number below this line */
108 GALAHAD: No, please. Please! I can defeat them! There's only a hundred.
109 GIRLS: He will beat us easily. We haven't a chance.
110 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
112 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
113 /// Creator of Vim - Vi IMproved -- http://www.Vim.org \\\
114 \\\ Project leader for A-A-P -- http://www.A-A-P.org ///
115 \\\ Help AIDS victims, buy here: http://ICCF-Holland.org/click1.html ///