diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-01-09 17:37:21 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-09 17:37:21 +0800 |
commit | d64549bc4e795cabca270f91b483ba9df7006b85 (patch) | |
tree | 851c079d82cc3c20d08eb82a88a2b59a0e24d5e2 /src/nvim/os/env.c | |
parent | 53adccb6e0292f7ba5524121c0200a73aec977a6 (diff) | |
parent | 7ba39b4378743ceefdd52186e64acd6af6f8e5a2 (diff) | |
download | rneovim-d64549bc4e795cabca270f91b483ba9df7006b85.tar.gz rneovim-d64549bc4e795cabca270f91b483ba9df7006b85.tar.bz2 rneovim-d64549bc4e795cabca270f91b483ba9df7006b85.zip |
Merge pull request #21488 from dundargoc/refactor/char_u/16.1
refactor/char u/16.1
Diffstat (limited to 'src/nvim/os/env.c')
-rw-r--r-- | src/nvim/os/env.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/os/env.c b/src/nvim/os/env.c index 29bfbfcfdf..4b892fac28 100644 --- a/src/nvim/os/env.c +++ b/src/nvim/os/env.c @@ -634,7 +634,7 @@ void expand_env_esc(char *restrict srcp, char *restrict dst, int dstlen, bool es } else // NOLINT #endif { - while (c-- > 0 && *tail != NUL && vim_isIDc(*tail)) { + while (c-- > 0 && *tail != NUL && vim_isIDc((uint8_t)(*tail))) { *var++ = *tail++; } } @@ -667,7 +667,7 @@ void expand_env_esc(char *restrict srcp, char *restrict dst, int dstlen, bool es int c = dstlen - 1; while (c-- > 0 && *tail - && vim_isfilec(*tail) + && vim_isfilec((uint8_t)(*tail)) && !vim_ispathsep(*tail)) { *var++ = *tail++; } |