1
0
forked from aniani/vim

updated for version 7.0175

This commit is contained in:
Bram Moolenaar
2005-12-22 22:47:02 +00:00
parent bb1004ee56
commit f4cd3e8074
24 changed files with 149 additions and 28 deletions

View File

@@ -722,6 +722,10 @@ msg_may_trunc(force, s)
{
int size = vim_strsize(s);
/* There may be room anyway when there are multibyte chars. */
if (size <= room)
return s;
for (n = 0; size >= room; )
{
size -= (*mb_ptr2cells)(s + n);