]> git.pld-linux.org Git - packages/vim.git/blob - 7.0.189
- updated to 0.7.3
[packages/vim.git] / 7.0.189
1 To: vim-dev@vim.org
2 Subject: patch 7.0.189
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 7.0.189
11 Problem:    Translated message about finding matches is truncated.  (Yukihiro
12             Nakadaira)
13 Solution:   Enlarge the buffer.  Also use vim_snprintf().
14 Files:      src/edit.c
15
16
17 *** ../vim-7.0.188/src/edit.c   Wed Nov  1 21:24:58 2006
18 --- src/edit.c  Fri Jan 19 20:22:09 2007
19 ***************
20 *** 4970,4985 ****
21              * just a safety check. */
22             if (compl_curr_match->cp_number != -1)
23             {
24 !               /* Space for 10 text chars. + 2x10-digit no.s */
25 !               static char_u match_ref[31];
26   
27                 if (compl_matches > 0)
28 !                   sprintf((char *)IObuff, _("match %d of %d"),
29                                 compl_curr_match->cp_number, compl_matches);
30                 else
31 !                   sprintf((char *)IObuff, _("match %d"),
32 !                                                compl_curr_match->cp_number);
33 !               vim_strncpy(match_ref, IObuff, 30);
34                 edit_submode_extra = match_ref;
35                 edit_submode_highl = HLF_R;
36                 if (dollar_vcol)
37 --- 4970,4987 ----
38              * just a safety check. */
39             if (compl_curr_match->cp_number != -1)
40             {
41 !               /* Space for 10 text chars. + 2x10-digit no.s = 31.
42 !                * Translations may need more than twice that. */
43 !               static char_u match_ref[81];
44   
45                 if (compl_matches > 0)
46 !                   vim_snprintf((char *)match_ref, sizeof(match_ref),
47 !                               _("match %d of %d"),
48                                 compl_curr_match->cp_number, compl_matches);
49                 else
50 !                   vim_snprintf((char *)match_ref, sizeof(match_ref),
51 !                               _("match %d"),
52 !                               compl_curr_match->cp_number);
53                 edit_submode_extra = match_ref;
54                 edit_submode_highl = HLF_R;
55                 if (dollar_vcol)
56 *** ../vim-7.0.188/src/version.c        Tue Jan 16 22:13:53 2007
57 --- src/version.c       Sun Feb  4 02:35:43 2007
58 ***************
59 *** 668,669 ****
60 --- 668,671 ----
61   {   /* Add new patch number below this line */
62 + /**/
63 +     189,
64   /**/
65
66 -- 
67 How many light bulbs does it take to change a person?
68
69  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
70 ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
71 \\\        download, build and distribute -- http://www.A-A-P.org        ///
72  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
This page took 0.046765 seconds and 3 git commands to generate.