mirror of
https://github.com/neovim/neovim.git
synced 2025-09-18 17:28:23 +00:00
Linting.
This commit is contained in:
@@ -5106,12 +5106,14 @@ 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
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user