mirror of
https://github.com/neovim/neovim.git
synced 2025-09-11 22:08:18 +00:00
refactor: replace char_u with char 16 - remove STRNCMP (#21208)
refactor: replace char_u with char Work on https://github.com/neovim/neovim/issues/459
This commit is contained in:
@@ -185,7 +185,7 @@ char *vim_strsave_shellescape(const char *string, bool do_special, bool do_newli
|
||||
length++; // insert backslash
|
||||
}
|
||||
}
|
||||
if (do_special && find_cmdline_var(p, &l) >= 0) {
|
||||
if (do_special && find_cmdline_var((char *)p, &l) >= 0) {
|
||||
length++; // insert backslash
|
||||
p += l - 1;
|
||||
}
|
||||
@@ -234,7 +234,7 @@ char *vim_strsave_shellescape(const char *string, bool do_special, bool do_newli
|
||||
*d++ = *p++;
|
||||
continue;
|
||||
}
|
||||
if (do_special && find_cmdline_var((char_u *)p, &l) >= 0) {
|
||||
if (do_special && find_cmdline_var(p, &l) >= 0) {
|
||||
*d++ = '\\'; // insert backslash
|
||||
while (--l != SIZE_MAX) { // copy the var
|
||||
*d++ = *p++;
|
||||
|
Reference in New Issue
Block a user