diff options
author | Dundar Goc <gocdundar@gmail.com> | 2022-04-30 20:28:04 +0200 |
---|---|---|
committer | Dundar Goc <gocdundar@gmail.com> | 2022-04-30 23:39:17 +0200 |
commit | af782a630633ffe0cb082bda974b24d4f577313e (patch) | |
tree | 7a65343a9d6cdd926aa46db55dd263c2d9eda793 /src/nvim/tag.c | |
parent | 0344736aa698dc205f8f9f80609b7033308d39ca (diff) | |
download | rneovim-af782a630633ffe0cb082bda974b24d4f577313e.tar.gz rneovim-af782a630633ffe0cb082bda974b24d4f577313e.tar.bz2 rneovim-af782a630633ffe0cb082bda974b24d4f577313e.zip |
refactor: replace char_u variables and functions with char
Work on https://github.com/neovim/neovim/issues/459
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; |