aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerw7 <erw7.github@gmail.com>2020-05-05 17:33:48 +0900
committerGitHub <noreply@github.com>2020-05-05 10:33:48 +0200
commita467f3f665bda399feae440656f38ae573cef27f (patch)
tree91fda70605e017dff052cb3aa8c7c177c52010ac
parentfdd328d568f7f1a11474fd59a429ace2720afa33 (diff)
downloadrneovim-a467f3f665bda399feae440656f38ae573cef27f.tar.gz
rneovim-a467f3f665bda399feae440656f38ae573cef27f.tar.bz2
rneovim-a467f3f665bda399feae440656f38ae573cef27f.zip
tag: fix problem when tagfunc return value is v:null (#12251)
fixes #12250.
-rw-r--r--src/nvim/tag.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/tag.c b/src/nvim/tag.c
index ff07a00952..81d1ef4c9f 100644
--- a/src/nvim/tag.c
+++ b/src/nvim/tag.c
@@ -1182,7 +1182,7 @@ static int find_tagfunc_tags(
if (result == FAIL) {
return FAIL;
}
- if (rettv.v_type == VAR_SPECIAL && rettv.vval.v_number == VV_NULL) {
+ if (rettv.v_type == VAR_SPECIAL && rettv.vval.v_special == kSpecialVarNull) {
tv_clear(&rettv);
return NOTDONE;
}