diff options
author | bfredl <bjorn.linse@gmail.com> | 2022-11-28 18:11:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-28 18:11:41 +0100 |
commit | ccd17543f32a892814c3d32eb5e979722b843da9 (patch) | |
tree | f4768eb7d7be52402ccd55e3e4e04aecceab3e42 /src/nvim/window.c | |
parent | b2bb3973d9c7f25acfead2718d74fcf5b1e4551e (diff) | |
parent | 3b96ccf7d35be90e49029dec76344d3d92ad91dc (diff) | |
download | rneovim-ccd17543f32a892814c3d32eb5e979722b843da9.tar.gz rneovim-ccd17543f32a892814c3d32eb5e979722b843da9.tar.bz2 rneovim-ccd17543f32a892814c3d32eb5e979722b843da9.zip |
Merge pull request #21200 from dundargoc/refactor/char_u/15
refactor: replace char_u with char 15 - remove STRNLEN and STRNCPY
Diffstat (limited to 'src/nvim/window.c')
-rw-r--r-- | src/nvim/window.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/window.c b/src/nvim/window.c index aacf30712a..3d10f89a2c 100644 --- a/src/nvim/window.c +++ b/src/nvim/window.c @@ -543,7 +543,7 @@ wingotofile: // Make a copy, if the line was changed it will be freed. ptr = xstrnsave(ptr, len); - find_pattern_in_path((char_u *)ptr, 0, len, true, Prenum == 0, + find_pattern_in_path(ptr, 0, len, true, Prenum == 0, type, Prenum1, ACTION_SPLIT, 1, MAXLNUM); xfree(ptr); curwin->w_set_curswant = true; @@ -6799,9 +6799,9 @@ char_u *file_name_in_line(char_u *line, int col, int options, long count, char_u // Also accept " line 999" with and without the same translation as // used in last_set_msg(). char *p = ptr + len; - if (STRNCMP(p, line_english, strlen(line_english)) == 0) { + if (strncmp(p, line_english, strlen(line_english)) == 0) { p += strlen(line_english); - } else if (STRNCMP(p, line_transl, strlen(line_transl)) == 0) { + } else if (strncmp(p, line_transl, strlen(line_transl)) == 0) { p += strlen(line_transl); } else { p = skipwhite(p); |