From dd05902964547b2fe566f8c3131d7d1ff622ce44 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Wed, 12 Sep 2012 23:19:29 -0700 Subject: [PATCH] Fix display mistakes caused by multi-line history. --- Display.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Display.cpp b/Display.cpp index adfabdb..fbca8df 100644 --- a/Display.cpp +++ b/Display.cpp @@ -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; + } } -- 2.49.0