diff options
author | bfredl <bjorn.linse@gmail.com> | 2022-08-29 18:46:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-29 18:46:38 +0200 |
commit | 68efac36831fca40c0a15365d0f0fc2d38c43708 (patch) | |
tree | 8494afd25e715b063f7a802584a007a8c62be53e /src/nvim/strings.c | |
parent | 126fe7fbc9c88c412c8067d9d146d998baf6dd47 (diff) | |
parent | 58f30a326f34319801e7921f32c83e8320d85f6c (diff) | |
download | rneovim-68efac36831fca40c0a15365d0f0fc2d38c43708.tar.gz rneovim-68efac36831fca40c0a15365d0f0fc2d38c43708.tar.bz2 rneovim-68efac36831fca40c0a15365d0f0fc2d38c43708.zip |
Merge pull request #19973 from dundargoc/refactor/char_u/3
refactor: replace char_u with char 3: revenge of the unsigned
Diffstat (limited to 'src/nvim/strings.c')
-rw-r--r-- | src/nvim/strings.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/strings.c b/src/nvim/strings.c index ac9d414be2..bd0f122f99 100644 --- a/src/nvim/strings.c +++ b/src/nvim/strings.c @@ -104,7 +104,7 @@ char_u *vim_strsave_escaped_ext(const char_u *string, const char_u *esc_chars, c p += l - 1; continue; } - if (vim_strchr((char *)esc_chars, *p) != NULL || (bsl && rem_backslash(p))) { + if (vim_strchr((char *)esc_chars, *p) != NULL || (bsl && rem_backslash((char *)p))) { length++; // count a backslash } length++; // count an ordinary char @@ -120,7 +120,7 @@ char_u *vim_strsave_escaped_ext(const char_u *string, const char_u *esc_chars, c p += l - 1; // skip multibyte char continue; } - if (vim_strchr((char *)esc_chars, *p) != NULL || (bsl && rem_backslash(p))) { + if (vim_strchr((char *)esc_chars, *p) != NULL || (bsl && rem_backslash((char *)p))) { *p2++ = cc; } *p2++ = *p; |