mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
Linting.
This commit is contained in:
parent
24dac220d3
commit
691e3bbc99
@ -5106,13 +5106,15 @@ 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
|
||||
|
||||
/// Name of Vim's own temp dir. Ends in a slash.
|
||||
|
Loading…
Reference in New Issue
Block a user