Skip to content

Commit abf971d

Browse files
committed
Add missing TCLI_COMPLETE preprocessor barrier. Fix #13.
1 parent d45360f commit abf971d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

source/tclie.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -647,8 +647,12 @@ static bool tclie_pattern_match(tclie_t *const tclie, const char *pattern,
647647
};
648648

649649
const bool matches = tclie_pattern_match_token(&token, &p);
650+
651+
#if TCLI_COMPLETE
650652
if (arg_index != 0)
651653
tclie_pattern_match_complete_options(&p);
654+
#endif
655+
652656
return matches && arg_index == argc;
653657
}
654658
#endif

0 commit comments

Comments
 (0)