diff options
author | Bram Moolenaar <Bram@vim.org> | 2007-02-04 01:37:39 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2007-02-04 01:37:39 +0000 |
commit | 0739a1e671eb655db8b04d280be1d6d3f67febac (patch) | |
tree | 74d5ce5b323214ef8fdca1910d28ba734eb29e6a | |
parent | 8c471fa0b359cfcade79f6e14f723b8436a7a594 (diff) |
updated for version 7.0-189v7.0.189
-rw-r--r-- | src/edit.c | 14 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 10 insertions, 6 deletions
diff --git a/src/edit.c b/src/edit.c index dacbef574e..46b496ba45 100644 --- 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) diff --git a/src/version.c b/src/version.c index 5e84c66055..4459e5fce4 100644 --- a/src/version.c +++ b/src/version.c @@ -667,6 +667,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 189, +/**/ 188, /**/ 187, |