From: Jay Freeman (saurik) Date: Tue, 27 Apr 2010 11:44:12 +0000 (+0000) Subject: Add a space character more consistently. X-Git-Tag: v0.9.432~65 X-Git-Url: https://git.saurik.com/cycript.git/commitdiff_plain/6dccefa97d3d196f2c1da710afc716df700352d5?ds=sidebyside Add a space character more consistently. --- diff --git a/Console.cpp b/Console.cpp index bc35379..2d6b566 100644 --- a/Console.cpp +++ b/Console.cpp @@ -366,6 +366,8 @@ static char **Complete(const char *word, int start, int end) { size_t colon(common.find(':')); if (colon != std::string::npos) common = common.substr(0, colon + 1); + if (completions.size() == 1) + common += ' '; char **results(reinterpret_cast(malloc(sizeof(char *) * (count + 2)))); diff --git a/todo.txt b/todo.txt index 684de10..76e8de8 100644 --- a/todo.txt +++ b/todo.txt @@ -26,5 +26,3 @@ special work needs to be done to correctly handle the "arguments" symbol: Declar at the Program level I seem to be eating away all of the var statements function pointers are ?; note that blocks are currently block_P = '?' I should probably attempt to use the auto_ flag somehow to not do contexts_ push when compiling - -autocompleting a selector should maybe add the space or not or something, but should make up its mind