From 4e8c0f757df99956a2c6b2bf717ef2065bcf24f5 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Fri, 29 Jan 2021 18:08:05 +0100 Subject: [PATCH] complete: Don't require a parameter with --force-files A classic fallthrough problem! This is why I want to enable -Wimplicit-fallthrough --- src/builtin_complete.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/builtin_complete.cpp b/src/builtin_complete.cpp index 42e7a0831..72b1571ea 100644 --- a/src/builtin_complete.cpp +++ b/src/builtin_complete.cpp @@ -180,6 +180,7 @@ maybe_t builtin_complete(parser_t &parser, io_streams_t &streams, wchar_t * } case 'F': { result_mode.force_files = true; + break; } case 'r': { result_mode.requires_param = true;