comment fix
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3101 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
ea9d03f135
commit
069674c2d5
|
@ -365,8 +365,8 @@ int parse_mbchar(const char *buf, char *chr, size_t *col)
|
||||||
/* Get the number of bytes in the multibyte character. */
|
/* Get the number of bytes in the multibyte character. */
|
||||||
buf_mb_len = mblen(buf, MB_CUR_MAX);
|
buf_mb_len = mblen(buf, MB_CUR_MAX);
|
||||||
|
|
||||||
/* If buf contains an invalid multibyte character, set bad_chr
|
/* If buf contains an invalid multibyte character, only
|
||||||
* to TRUE and interpret buf's first byte. */
|
* interpret buf's first byte. */
|
||||||
if (buf_mb_len < 0) {
|
if (buf_mb_len < 0) {
|
||||||
mblen(NULL, 0);
|
mblen(NULL, 0);
|
||||||
buf_mb_len = 1;
|
buf_mb_len = 1;
|
||||||
|
|
Loading…
Reference in New Issue