billiob pushed a commit to branch master. http://git.enlightenment.org/apps/terminology.git/commit/?id=11db9a1117e23e7087daa94b794d812f8c678b4d
commit 11db9a1117e23e7087daa94b794d812f8c678b4d Author: Aleksandar Popadić <[email protected]> Date: Fri Nov 22 22:15:22 2013 +0100 Fix screen swap when using alternate buffer. Summary: The circular_offset should not be set to 0 because the first line from screen2 is copied to the offset line in screen. Test Plan: Try "man echo", scroll down and exit. The screen is not restored properly. Reviewers: billiob Reviewed By: billiob Differential Revision: https://phab.enlightenment.org/D345 --- src/bin/termpty.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/bin/termpty.c b/src/bin/termpty.c index 03a6413..8d970c9 100644 --- a/src/bin/termpty.c +++ b/src/bin/termpty.c @@ -1509,7 +1509,6 @@ termpty_screen_swap(Termpty *ty) &(TERMPTY_SCREEN(ty, 0, y)), &ty->screen2[y * ty->w]); } - ty->circular_offset = 0; ty->altbuf = !ty->altbuf; if (ty->cb.cancel_sel.func) --
