aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/tag.c
diff options
context:
space:
mode:
authordundargoc <gocdundar@gmail.com>2023-11-11 11:20:08 +0100
committerdundargoc <33953936+dundargoc@users.noreply.github.com>2023-11-11 13:31:17 +0100
commit8e58d37f2e15ac8540377148e55ed08a039aadb6 (patch)
tree799dd1f30d375ac8cdeae196fceec9d2ad0f134a /src/nvim/tag.c
parentc4ad15ae324f6460c683a64c44d65e693e1f39bb (diff)
downloadrneovim-8e58d37f2e15ac8540377148e55ed08a039aadb6.tar.gz
rneovim-8e58d37f2e15ac8540377148e55ed08a039aadb6.tar.bz2
rneovim-8e58d37f2e15ac8540377148e55ed08a039aadb6.zip
refactor: remove redundant casts
Diffstat (limited to 'src/nvim/tag.c')
-rw-r--r--src/nvim/tag.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/tag.c b/src/nvim/tag.c
index 7a175926d2..a916313982 100644
--- a/src/nvim/tag.c
+++ b/src/nvim/tag.c
@@ -1903,13 +1903,13 @@ static bool findtags_match_tag(findtags_state_T *st, tagptrs_T *tagpp, findtags_
if (!match && st->orgpat->regmatch.regprog != NULL) {
char cc = *tagpp->tagname_end;
*tagpp->tagname_end = NUL;
- match = vim_regexec(&st->orgpat->regmatch, tagpp->tagname, (colnr_T)0);
+ match = vim_regexec(&st->orgpat->regmatch, tagpp->tagname, 0);
if (match) {
margs->matchoff = (int)(st->orgpat->regmatch.startp[0] - tagpp->tagname);
if (st->orgpat->regmatch.rm_ic) {
st->orgpat->regmatch.rm_ic = false;
margs->match_no_ic = vim_regexec(&st->orgpat->regmatch,
- tagpp->tagname, (colnr_T)0);
+ tagpp->tagname, 0);
st->orgpat->regmatch.rm_ic = true;
}
}
@@ -2932,7 +2932,7 @@ static int jumpto_tag(const char *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, fname, NULL, true, 0, forceit);
}
keep_help_flag = false;