This commit is contained in:
KillTheMule 2016-05-02 21:32:41 +02:00
parent 24dac220d3
commit 691e3bbc99

View File

@ -5106,13 +5106,15 @@ void forward_slash(char_u *fname)
if (path_with_url(fname)) { if (path_with_url(fname)) {
return; return;
} }
for (p = fname; *p != NUL; ++p) for (p = fname; *p != NUL; p++) {
/* The Big5 encoding can have '\' in the trail byte. */ // The Big5 encoding can have '\' in the trail byte.
if (enc_dbcs != 0 && (*mb_ptr2len)(p) > 1) if (enc_dbcs != 0 && (*mb_ptr2len)(p) > 1) {
++p; p++;
else if (*p == '\\') } else if (*p == '\\') {
*p = '/'; *p = '/';
} }
}
}
#endif #endif
/// Name of Vim's own temp dir. Ends in a slash. /// Name of Vim's own temp dir. Ends in a slash.