diff --git a/builtin_complete.cpp b/builtin_complete.cpp index e306c739c..691fad2b7 100644 --- a/builtin_complete.cpp +++ b/builtin_complete.cpp @@ -224,6 +224,14 @@ static void builtin_complete_remove2(const wchar_t *cmd, } } } + else if (gnu_opt.empty() && old_opt.empty()) + { + complete_remove(cmd, + cmd_type, + 0, + 0, + 0); + } else { builtin_complete_remove3(cmd,