0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

updated for version 7.1-170

This commit is contained in:
Bram Moolenaar
2007-12-07 16:30:42 +00:00
parent e6f565a7be
commit c3b730796c
2 changed files with 5 additions and 2 deletions

View File

@@ -253,8 +253,9 @@ add_buff(buf, s, slen)
return;
}
else if (buf->bh_index != 0)
STRCPY(buf->bh_first.b_next->b_str,
buf->bh_first.b_next->b_str + buf->bh_index);
mch_memmove(buf->bh_first.b_next->b_str,
buf->bh_first.b_next->b_str + buf->bh_index,
STRLEN(buf->bh_first.b_next->b_str + buf->bh_index) + 1);
buf->bh_index = 0;
if (buf->bh_space >= (int)slen)