Mercurial > vim
diff src/fileio.c @ 375:f14cbd913415 v7.0097
updated for version 7.0097
author | vimboss |
---|---|
date | Wed, 29 Jun 2005 22:40:58 +0000 |
parents | 644578c9e219 |
children | 289b19a6f2ed |
line wrap: on
line diff
--- a/src/fileio.c +++ b/src/fileio.c @@ -1344,8 +1344,11 @@ retry: == (size_t)-1 && ICONV_ERRNO != ICONV_EINVAL) || from_size > CONV_RESTLEN) { + if (!keep_dest_enc && can_retry) + goto rewind_retry; if (!keep_dest_enc) - goto rewind_retry; + conv_error = TRUE; + /* Ignore a byte and try again. */ ++fromp; --from_size; @@ -1761,6 +1764,7 @@ rewind_retry: conv_error = TRUE; else # endif + if (illegal_byte == 0) /* Keep the first linenr */ { char_u *s;