From 4f796df87c952ddd8147ea57f4c6b62803acd749 Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Sun, 28 Jun 2020 20:35:59 +0200 Subject: [PATCH] Clarify comment --- src/wildcard.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wildcard.cpp b/src/wildcard.cpp index 5dc2bab64..9d1d15388 100644 --- a/src/wildcard.cpp +++ b/src/wildcard.cpp @@ -233,7 +233,8 @@ static bool wildcard_complete_internal(const wchar_t * const str, size_t str_len // Maybe we have no more wildcards at all. This includes the empty string. if (next_wc_char_pos == wcstring::npos) { - // A string cannot fuzzy match a wildcard that is longer than the string itself + // A string cannot fuzzy match a pattern without wildcards that is longer than the string + // itself if (wc_len > str_len) { return false; }