From c41590b2ad915045995ae5d39b91bc493c4e11d8 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Tue, 27 Apr 2010 00:42:09 +0000 Subject: [PATCH] Break completions at :. --- Console.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Console.cpp b/Console.cpp index 4a27c64..930394b 100644 --- a/Console.cpp +++ b/Console.cpp @@ -351,6 +351,10 @@ static char **Complete(const char *word, int start, int end) { common = common.substr(size); } + size_t colon(common.find(':')); + if (colon != std::string::npos) + common = common.substr(0, colon + 1); + char **results(reinterpret_cast(malloc(sizeof(char *) * (count + 2)))); results[0] = strdup(common.c_str()); -- 2.49.0