comparison src/message.c @ 615:7fe13e0f5dce v7.0175

updated for version 7.0175
author vimboss
date Thu, 22 Dec 2005 22:47:02 +0000
parents b13dbb7b797c
children 81fe2ccc1207
comparison
equal deleted inserted replaced
614:0b1b7560c456 615:7fe13e0f5dce
720 #ifdef FEAT_MBYTE 720 #ifdef FEAT_MBYTE
721 if (has_mbyte) 721 if (has_mbyte)
722 { 722 {
723 int size = vim_strsize(s); 723 int size = vim_strsize(s);
724 724
725 /* There may be room anyway when there are multibyte chars. */
726 if (size <= room)
727 return s;
728
725 for (n = 0; size >= room; ) 729 for (n = 0; size >= room; )
726 { 730 {
727 size -= (*mb_ptr2cells)(s + n); 731 size -= (*mb_ptr2cells)(s + n);
728 n += (*mb_ptr2len)(s + n); 732 n += (*mb_ptr2len)(s + n);
729 } 733 }