diff options
author | Dundar Göc <gocdundar@gmail.com> | 2022-08-26 23:11:25 +0200 |
---|---|---|
committer | dundargoc <gocdundar@gmail.com> | 2022-11-26 15:52:21 +0100 |
commit | bd22585061b66d7f71d4832b4a81e950b3c9d19d (patch) | |
tree | 8c677ace61ab212cef87bc5abbd83c56e50f800d /src/nvim/tag.c | |
parent | 29b80f6f2e9391b5d78390f65d09f00f73829310 (diff) | |
download | rneovim-bd22585061b66d7f71d4832b4a81e950b3c9d19d.tar.gz rneovim-bd22585061b66d7f71d4832b4a81e950b3c9d19d.tar.bz2 rneovim-bd22585061b66d7f71d4832b4a81e950b3c9d19d.zip |
refactor: replace char_u 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 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/tag.c b/src/nvim/tag.c index 7e4677e502..71164726eb 100644 --- a/src/nvim/tag.c +++ b/src/nvim/tag.c @@ -1481,7 +1481,7 @@ static bool findtags_in_help_init(findtags_state_T *st) } else { // Prefer help tags according to 'helplang'. Put the two-letter // language name in help_lang[]. - i = (int)STRLEN(st->tag_fname); + i = (int)strlen(st->tag_fname); if (i > 3 && st->tag_fname[i - 3] == '-') { STRLCPY(st->help_lang, st->tag_fname + i - 2, 3); } else { @@ -2599,7 +2599,7 @@ int get_tagfname(tagname_T *tnp, int first, char *buf) // move the filename one char forward and truncate the // filepath with a NUL filename = (char_u *)path_tail(buf); - STRMOVE(filename + 1, filename); + STRMOVE(filename + 1, (char *)filename); *filename++ = NUL; tnp->tn_search_ctx = vim_findfile_init(buf, (char *)filename, |