Skip to content

tclie_pattern_match: Add missing #if TCLI_COMPLETE #13

@jmcmullan

Description

@jmcmullan

Add missing TCLI_COMPLETE preprocessor barrier:

diff -u a/source/tclie.c b/source/tclie.c
--- a/source/tclie.c    2022-09-20 15:36:47.499476363 -0400
+++ b/source/tclie.c    2022-09-20 15:37:59.739855525 -0400
@@ -645,8 +645,10 @@ static bool tclie_pattern_match(tclie_t
    };
 
    const bool matches = tclie_pattern_match_token(&token, &p);
+#if TCLI_COMPLETE
    if (arg_index != 0)
        tclie_pattern_match_complete_options(&p);
+#endif
    return matches && arg_index == argc;
 }
 #endif

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions