0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

Fixed ":s" message. Docs updates.

This commit is contained in:
Bram Moolenaar
2010-07-10 13:52:13 +02:00
parent d04b7507fd
commit 0bc380a96b
8 changed files with 37 additions and 22 deletions

View File

@@ -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);
}