Mercurial > vim
changeset 1063:d763e7d7e938 v7.0.189
updated for version 7.0-189
author | vimboss |
---|---|
date | Sun, 04 Feb 2007 01:37:39 +0000 |
parents | 9e084588b706 |
children | a8bcc7553263 |
files | src/edit.c src/version.c |
diffstat | 2 files changed, 10 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/src/edit.c +++ b/src/edit.c @@ -4970,16 +4970,18 @@ ins_complete(c) * just a safety check. */ if (compl_curr_match->cp_number != -1) { - /* Space for 10 text chars. + 2x10-digit no.s */ - static char_u match_ref[31]; + /* Space for 10 text chars. + 2x10-digit no.s = 31. + * Translations may need more than twice that. */ + static char_u match_ref[81]; if (compl_matches > 0) - sprintf((char *)IObuff, _("match %d of %d"), + vim_snprintf((char *)match_ref, sizeof(match_ref), + _("match %d of %d"), compl_curr_match->cp_number, compl_matches); else - sprintf((char *)IObuff, _("match %d"), - compl_curr_match->cp_number); - vim_strncpy(match_ref, IObuff, 30); + vim_snprintf((char *)match_ref, sizeof(match_ref), + _("match %d"), + compl_curr_match->cp_number); edit_submode_extra = match_ref; edit_submode_highl = HLF_R; if (dollar_vcol)