From 11db9a1117e23e7087daa94b794d812f8c678b4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleksandar=20Popadi=C4=87?= Date: Fri, 22 Nov 2013 22:15:22 +0100 Subject: [PATCH] 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 03a6413a..8d970c92 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)