4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: Translated message about finding matches is truncated. (Yukihiro
13 Solution: Enlarge the buffer. Also use vim_snprintf().
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
21 * just a safety check. */
22 if (compl_curr_match->cp_number != -1)
24 ! /* Space for 10 text chars. + 2x10-digit no.s */
25 ! static char_u match_ref[31];
27 if (compl_matches > 0)
28 ! sprintf((char *)IObuff, _("match %d of %d"),
29 compl_curr_match->cp_number, compl_matches);
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;
38 * just a safety check. */
39 if (compl_curr_match->cp_number != -1)
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];
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);
50 ! vim_snprintf((char *)match_ref, sizeof(match_ref),
52 ! compl_curr_match->cp_number);
53 edit_submode_extra = match_ref;
54 edit_submode_highl = HLF_R;
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
61 { /* Add new patch number below this line */
67 How many light bulbs does it take to change a person?
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 ///