]> git.saurik.com Git - cycript.git/commitdiff
Add a space character more consistently.
authorJay Freeman (saurik) <saurik@saurik.com>
Tue, 27 Apr 2010 11:44:12 +0000 (11:44 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Tue, 27 Apr 2010 11:44:12 +0000 (11:44 +0000)
Console.cpp
todo.txt

index bc353795e48633bac762dbec5a41183b29a56c22..2d6b566e05aa57565bee6e85dbeef4a0179351d3 100644 (file)
@@ -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<char **>(malloc(sizeof(char *) * (count + 2))));
 
index 684de101fec29cd98c766427e5d89f887ab46650..76e8de8f3b41df8785f2223703bc65ed52de8e1c 100644 (file)
--- 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