0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

updated for version 7.0216

This commit is contained in:
Bram Moolenaar
2006-03-06 23:29:24 +00:00
parent 768b8c4dbc
commit 362e1a30c6
95 changed files with 9798 additions and 1335 deletions

View File

@@ -293,10 +293,12 @@ trunc_string(s, buf, room)
else if (enc_utf8)
{
/* For UTF-8 we can go backwards easily. */
i = (int)STRLEN(s);
half = i = (int)STRLEN(s);
for (;;)
{
half = i - (*mb_head_off)(s, s + i - 1) - 1;
do
half = half - (*mb_head_off)(s, s + half - 1) - 1;
while (utf_iscomposing(utf_ptr2char(s + half)) && half > 0);
n = ptr2cells(s + half);
if (len + n > room)
break;
@@ -1723,7 +1725,7 @@ msg_puts_long_attr(longstr, attr)
char_u *longstr;
int attr;
{
msg_puts_long_len_attr(longstr, (int)strlen((char *)longstr), attr);
msg_puts_long_len_attr(longstr, (int)STRLEN(longstr), attr);
}
void