]> git.saurik.com Git - cycript.git/commitdiff
Use a dummy space to handle the lower-right corner.
authorJay Freeman (saurik) <saurik@saurik.com>
Thu, 13 Sep 2012 09:41:43 +0000 (02:41 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Thu, 13 Sep 2012 09:41:43 +0000 (02:41 -0700)
Display.cpp

index 555bd6d490336fa9dd978b95c429b33b0d78d473..7e088cb03961b2c9cfd699b771838342c2ee783f 100644 (file)
@@ -135,14 +135,13 @@ void CYDisplayUpdate() {
 
     CYDisplayMove(CYCursor());
     CYDisplayOutput(putchar, width, prompt);
-
     CYCursor target(CYDisplayOutput(putchar, width, stream.str().c_str(), rl_point));
-    if (target.imag() == 0)
-        putp(cursor_down);
 
+    if (current_.imag() == 0)
+        CYDisplayOutput(putchar, width, " ");
     putp(clr_eos);
-    CYDisplayMove(target);
 
+    CYDisplayMove(target);
     fflush(stdout);
 
     width_ = width;