From c68747823752d0cd895fa3ec38805f98f0b19f32 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Thu, 13 Sep 2012 02:41:43 -0700 Subject: [PATCH] Use a dummy space to handle the lower-right corner. --- Display.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Display.cpp b/Display.cpp index 555bd6d..7e088cb 100644 --- a/Display.cpp +++ b/Display.cpp @@ -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; -- 2.49.0