]> git.saurik.com Git - cycript.git/blobdiff - Display.cpp
Fix display mistakes caused by multi-line history.
[cycript.git] / Display.cpp
index adfabdb4c0d307a6cf1e3c0e8b55c013cd13fda3..fbca8df2faeb7485594854b3abddc883a560b02f 100644 (file)
@@ -80,13 +80,14 @@ CYCursor CYDisplayOutput(int (*put)(int), int width, const char *data, ssize_t o
             break;
 
             default:
-                if (put != NULL)
-                    put(next);
-
                 current_ += CYCursor(0, 1);
                 if (current_.imag() == width)
+            case '\n':
                     current_ = CYCursor(current_.real() + 1, 0);
+                if (put != NULL)
+                    put(next);
             break;
+
         }
     }