diff options
| -rw-r--r-- | src/nvim/tag.c | 4 | 
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nvim/tag.c b/src/nvim/tag.c index e267280bbd..816e9902fe 100644 --- a/src/nvim/tag.c +++ b/src/nvim/tag.c @@ -10,6 +10,7 @@   * Code to handle tags and the tag stack   */ +#include <assert.h>  #include <errno.h>  #include <inttypes.h>  #include <stdbool.h> @@ -2779,7 +2780,8 @@ int get_tags(list_T *list, char_u *pat)        TAG_REGEXP | TAG_NOIC, (int)MAXCOL, NULL);    if (ret == OK && num_matches > 0) {      for (i = 0; i < num_matches; ++i) { -      parse_match(matches[i], &tp); +      int parse_result = parse_match(matches[i], &tp); +      assert(parse_result == OK);        is_static = test_for_static(&tp);        /* Skip pseudo-tag lines. */  | 
