mirror of
https://github.com/vim/vim.git
synced 2025-09-26 04:04:07 -04:00
updated for version 7.1-034
This commit is contained in:
10
src/eval.c
10
src/eval.c
@@ -992,20 +992,20 @@ var_redir_str(value, value_len)
|
||||
char_u *value;
|
||||
int value_len;
|
||||
{
|
||||
size_t len;
|
||||
int len;
|
||||
|
||||
if (redir_lval == NULL)
|
||||
return;
|
||||
|
||||
if (value_len == -1)
|
||||
len = STRLEN(value); /* Append the entire string */
|
||||
len = (int)STRLEN(value); /* Append the entire string */
|
||||
else
|
||||
len = value_len; /* Append only "value_len" characters */
|
||||
len = value_len; /* Append only "value_len" characters */
|
||||
|
||||
if (ga_grow(&redir_ga, (int)len) == OK)
|
||||
if (ga_grow(&redir_ga, len) == OK)
|
||||
{
|
||||
mch_memmove((char *)redir_ga.ga_data + redir_ga.ga_len, value, len);
|
||||
redir_ga.ga_len += (int)len;
|
||||
redir_ga.ga_len += len;
|
||||
}
|
||||
else
|
||||
var_redir_stop();
|
||||
|
Reference in New Issue
Block a user