diff options
author | Matthieu Coudron <mattator@gmail.com> | 2020-11-15 18:18:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-15 18:18:12 +0100 |
commit | 1b8867ab39ecc25d454ca67e3cb8b3ef5fca9ed3 (patch) | |
tree | 1c169437d934d30564b42127b11e888fde04a2fd /src/nvim/fileio.c | |
parent | bcadf324cb6516369cb89da9bb1e8056f6fb91bb (diff) | |
parent | 87aaa8e837d873577ee6a908a387f40e3548bcb6 (diff) | |
download | rneovim-1b8867ab39ecc25d454ca67e3cb8b3ef5fca9ed3.tar.gz rneovim-1b8867ab39ecc25d454ca67e3cb8b3ef5fca9ed3.tar.bz2 rneovim-1b8867ab39ecc25d454ca67e3cb8b3ef5fca9ed3.zip |
Merge pull request #13293 from janlazo/vim-8.2.1976
vim-patch:8.2.{1979,1981,1982,1985,1987}
Diffstat (limited to 'src/nvim/fileio.c')
-rw-r--r-- | src/nvim/fileio.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/nvim/fileio.c b/src/nvim/fileio.c index 49de0f3bf8..6ee3a3f579 100644 --- a/src/nvim/fileio.c +++ b/src/nvim/fileio.c @@ -1310,14 +1310,11 @@ retry: char_u *dest; char_u *tail = NULL; - /* - * "enc_utf8" set: Convert Unicode or Latin1 to UTF-8. - * "enc_utf8" not set: Convert Unicode to Latin1. - * Go from end to start through the buffer, because the number - * of bytes may increase. - * "dest" points to after where the UTF-8 bytes go, "p" points - * to after the next character to convert. - */ + // Convert Unicode or Latin1 to UTF-8. + // Go from end to start through the buffer, because the number + // of bytes may increase. + // "dest" points to after where the UTF-8 bytes go, "p" points + // to after the next character to convert. dest = ptr + real_size; if (fio_flags == FIO_LATIN1 || fio_flags == FIO_UTF8) { p = ptr + size; |