diff options
author | bfredl <bjorn.linse@gmail.com> | 2022-05-01 10:35:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-01 10:35:48 +0200 |
commit | d9dcfd0219d51add74e6d93d5d1408be4b47bd97 (patch) | |
tree | f2144153081387585579c3d1440f78bdf1992331 /src/nvim/tag.c | |
parent | 07660193a38918aa6a17ec691c4e8b021436ed67 (diff) | |
parent | af782a630633ffe0cb082bda974b24d4f577313e (diff) | |
download | rneovim-d9dcfd0219d51add74e6d93d5d1408be4b47bd97.tar.gz rneovim-d9dcfd0219d51add74e6d93d5d1408be4b47bd97.tar.bz2 rneovim-d9dcfd0219d51add74e6d93d5d1408be4b47bd97.zip |
Merge pull request #18334 from dundargoc/refactor/remove-char_u
refactor: replace char_u variables and functions with char
Diffstat (limited to 'src/nvim/tag.c')
-rw-r--r-- | src/nvim/tag.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/tag.c b/src/nvim/tag.c index 83eb3d1832..40d65c2542 100644 --- a/src/nvim/tag.c +++ b/src/nvim/tag.c @@ -2097,8 +2097,8 @@ parse_line: STRCPY(p, tagp.tagname); p[len] = '@'; STRCPY(p + len + 1, help_lang); - snprintf((char *)p + len + 1 + ML_EXTRA, 10, "%06d", - help_heuristic(tagp.tagname, + snprintf((char *)p + len + 1 + ML_EXTRA, STRLEN(p) + len + 1 + ML_EXTRA, "%06d", + help_heuristic((char *)tagp.tagname, match_re ? matchoff : 0, !match_no_ic) + help_pri); @@ -2795,7 +2795,7 @@ static int jumpto_tag(const char_u *lbuf_arg, int forceit, int keep_help) if (getfile_result == GETFILE_UNUSED) { // Careful: getfile() may trigger autocommands and call jumpto_tag() // recursively. - getfile_result = getfile(0, fname, NULL, true, (linenr_T)0, forceit); + getfile_result = getfile(0, (char *)fname, NULL, true, (linenr_T)0, forceit); } keep_help_flag = false; |