]> git.pld-linux.org Git - packages/vim.git/blob - 6.2.222
- initial import
[packages/vim.git] / 6.2.222
1 To: vim-dev@vim.org
2 Subject: Patch 6.2.222
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.2.222
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.
15 Files:      src/main.c
16
17
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
20 ***************
21 *** 3051,3060 ****
22       str = replace_termcodes((char_u *)str, &ptr, FALSE, TRUE);
23       p_cpo = cpo_save;
24   
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);
30   
31       /* Let input_available() know we inserted text in the typeahead buffer. */
32 --- 3059,3075 ----
33       str = replace_termcodes((char_u *)str, &ptr, FALSE, TRUE);
34       p_cpo = cpo_save;
35   
36 !     /*
37 !      * Add the string to the input stream.
38 !      * Can't use add_to_input_buf() here, we now have K_SPECIAL bytes.
39 !      *
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.
43 !      */
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);
48   
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
52 ***************
53 *** 639,640 ****
54 --- 639,642 ----
55   {   /* Add new patch number below this line */
56 + /**/
57 +     222,
58   /**/
59
60 -- 
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.
64
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  ///
This page took 0.047919 seconds and 3 git commands to generate.