diff options
author | KillTheMule <KillTheMule@users.noreply.github.com> | 2016-05-02 21:32:41 +0200 |
---|---|---|
committer | KillTheMule <KillTheMule@users.noreply.github.com> | 2016-05-08 20:24:02 +0200 |
commit | 691e3bbc99af6e4ef9a1649e02b8fa302e4f5732 (patch) | |
tree | be59dded9159dfe63b1230a8329273ea7d9a13a5 /src | |
parent | 24dac220d377d0dedbe192437b1da4b5b6f4bd6f (diff) | |
download | rneovim-691e3bbc99af6e4ef9a1649e02b8fa302e4f5732.tar.gz rneovim-691e3bbc99af6e4ef9a1649e02b8fa302e4f5732.tar.bz2 rneovim-691e3bbc99af6e4ef9a1649e02b8fa302e4f5732.zip |
Linting.
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/fileio.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/nvim/fileio.c b/src/nvim/fileio.c index 6030f388d5..db1469db97 100644 --- a/src/nvim/fileio.c +++ b/src/nvim/fileio.c @@ -5106,12 +5106,14 @@ void forward_slash(char_u *fname) if (path_with_url(fname)) { return; } - for (p = fname; *p != NUL; ++p) - /* The Big5 encoding can have '\' in the trail byte. */ - if (enc_dbcs != 0 && (*mb_ptr2len)(p) > 1) - ++p; - else if (*p == '\\') + for (p = fname; *p != NUL; p++) { + // The Big5 encoding can have '\' in the trail byte. + if (enc_dbcs != 0 && (*mb_ptr2len)(p) > 1) { + p++; + } else if (*p == '\\') { *p = '/'; + } + } } #endif |