4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: Using "--remote" several times on a row only opens some of the
12 files. (Dany St-Amant)
13 Solution: Don't delete all typehead when the server receives a command from
14 a client, only delete typed characters.
18 *** ../vim-6.2.221/src/main.c Wed Nov 12 20:44:40 2003
19 --- src/main.c Fri Jan 30 15:49:09 2004
22 str = replace_termcodes((char_u *)str, &ptr, FALSE, TRUE);
25 ! /* Can't use add_to_input_buf() here, we now have K_SPECIAL bytes.
26 ! * First clear the typeahead buffer, there could be half a mapping there. */
27 ! del_typebuf(typebuf.tb_len, 0);
28 ! (void)ins_typebuf(str, REMAP_NONE, 0, TRUE, FALSE);
29 vim_free((char_u *)ptr);
31 /* Let input_available() know we inserted text in the typeahead buffer. */
33 str = replace_termcodes((char_u *)str, &ptr, FALSE, TRUE);
37 ! * Add the string to the input stream.
38 ! * Can't use add_to_input_buf() here, we now have K_SPECIAL bytes.
40 ! * First clear typed characters from the typeahead buffer, there could be
41 ! * half a mapping there. Then append to the existing string, so that
42 ! * multiple commands from a client are concatenated.
44 ! if (typebuf.tb_maplen < typebuf.tb_len)
45 ! del_typebuf(typebuf.tb_len - typebuf.tb_maplen, typebuf.tb_maplen);
46 ! (void)ins_typebuf(str, REMAP_NONE, typebuf.tb_len, TRUE, FALSE);
47 vim_free((char_u *)ptr);
49 /* Let input_available() know we inserted text in the typeahead buffer. */
50 *** ../vim-6.2.221/src/version.c Sun Feb 1 20:08:40 2004
51 --- src/version.c Mon Feb 2 09:50:05 2004
55 { /* Add new patch number below this line */
61 hundred-and-one symptoms of being an internet addict:
62 16. You step out of your room and realize that your parents have moved and
63 you don't have a clue when it happened.
65 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
66 /// Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
67 \\\ Project leader for A-A-P -- http://www.A-A-P.org ///
68 \\\ Help AIDS victims, buy here: http://ICCF-Holland.org/click1.html ///