X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/66abbf4d0da4532ef0e109b144ebf8aa09d40886..85e9041079aa3e988ceeba13992a00d7be189d14:/Display.cpp diff --git a/Display.cpp b/Display.cpp index 1881ccd..7e088cb 100644 --- a/Display.cpp +++ b/Display.cpp @@ -72,9 +72,6 @@ CYCursor CYDisplayOutput(int (*put)(int), int width, const char *data, ssize_t o case CYIgnoreStart: CYDisplayOutput_(put, data); - ++offset; - break; - case CYIgnoreEnd: ++offset; break; @@ -90,8 +87,6 @@ CYCursor CYDisplayOutput(int (*put)(int), int width, const char *data, ssize_t o } } - - return point; } void CYDisplayMove_(char *negative, char *positive, int offset) { @@ -140,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;