From 12cf31de96eab7c22e15491291b1059da2f4bdc6 Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Sat, 16 Jul 2022 16:23:19 +0200 Subject: [PATCH] Remove a redundant comment Also add an issue reference since the commit message doesn't have one. Of course a test would be even better. --- src/complete.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/complete.cpp b/src/complete.cpp index b003fb200..838e72a1a 100644 --- a/src/complete.cpp +++ b/src/complete.cpp @@ -1435,8 +1435,7 @@ void completer_t::escape_opening_brackets(const wcstring &argument) { for (completion_t &comp : completions.get_list()) { if (comp.flags & COMPLETE_REPLACES_TOKEN) continue; comp.flags |= COMPLETE_REPLACES_TOKEN; - // if path contains tilde and the bracket is unescaped. Don't escape the tilde. - comp.flags |= COMPLETE_DONT_ESCAPE_TILDES; + comp.flags |= COMPLETE_DONT_ESCAPE_TILDES; // See #9073. if (comp.flags & COMPLETE_DONT_ESCAPE) { // If the completion won't be escaped, we need to do it here. // Currently, this will probably never happen since COMPLETE_DONT_ESCAPE