]> git.saurik.com Git - cycript.git/commitdiff
Use object_getClass for tab completion, not ->isa.
authorJay Freeman (saurik) <saurik@saurik.com>
Mon, 4 Jun 2012 09:29:04 +0000 (02:29 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Mon, 4 Jun 2012 09:29:04 +0000 (02:29 -0700)
Console.cpp

index df7d57b34165b994a3c889ebd69ead5dc2985ae7..b7a4533c571c995b4ac128aa76b0884a3317d46a 100644 (file)
@@ -264,7 +264,7 @@ static char **Complete(const char *word, int start, int end) {
 
         case CYDriver::AutoMessage: {
             CYDriver::Context &thing(driver.contexts_.back());
-            expression = $M($M($ CYIndirect(thing.context_), $S("isa")), $S("messages"));
+            expression = $M($C1($V("object_getClass"), thing.context_), $S("messages"));
             for (CYDriver::Context::Words::const_iterator part(thing.words_.begin()); part != thing.words_.end(); ++part)
                 prefix << (*part)->word_ << ':';
         } break;