mirror of
https://github.com/vim/vim.git
synced 2025-09-29 04:34:16 -04:00
Fixed ":s" message. Docs updates.
This commit is contained in:
@@ -5176,6 +5176,8 @@ do_sub_msg(count_only)
|
||||
{
|
||||
if (got_int)
|
||||
STRCPY(msg_buf, _("(Interrupted) "));
|
||||
else
|
||||
*msg_buf = NUL;
|
||||
if (sub_nsubs == 1)
|
||||
vim_snprintf_add((char *)msg_buf, sizeof(msg_buf),
|
||||
"%s", count_only ? _("1 match") : _("1 substitution"));
|
||||
|
@@ -5410,6 +5410,7 @@ nv_ident(cap)
|
||||
{
|
||||
char_u *ptr = NULL;
|
||||
char_u *buf;
|
||||
char_u *newbuf;
|
||||
char_u *p;
|
||||
char_u *kp; /* value of 'keywordprg' */
|
||||
int kp_help; /* 'keywordprg' is ":help" */
|
||||
@@ -5562,13 +5563,14 @@ nv_ident(cap)
|
||||
vim_free(buf);
|
||||
return;
|
||||
}
|
||||
buf = (char_u *)vim_realloc(buf, STRLEN(buf) + STRLEN(p) + 1);
|
||||
if (buf == NULL)
|
||||
newbuf = (char_u *)vim_realloc(buf, STRLEN(buf) + STRLEN(p) + 1);
|
||||
if (newbuf == NULL)
|
||||
{
|
||||
vim_free(buf);
|
||||
vim_free(p);
|
||||
return;
|
||||
}
|
||||
buf = newbuf;
|
||||
STRCAT(buf, p);
|
||||
vim_free(p);
|
||||
}
|
||||
|
Reference in New Issue
Block a user