From f820185c7eefd3827413fc17cc70351924c9989b Mon Sep 17 00:00:00 2001 From: Boris Faure Date: Thu, 24 Jan 2013 21:29:49 +0000 Subject: [PATCH] terminology: fix clear screen SVN revision: 83309 --- src/bin/termptyops.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/bin/termptyops.c b/src/bin/termptyops.c index ee912a84..22bf4a11 100644 --- a/src/bin/termptyops.c +++ b/src/bin/termptyops.c @@ -288,7 +288,9 @@ _termpty_clear_screen(Termpty *ty, Termpty_Clear mode) if (ty->state.cy < (ty->h - 1)) { cells = &(TERMPTY_SCREEN(ty, 0, (ty->state.cy + 1))); - _text_clear(ty, cells, ty->w * (ty->h - ty->state.cy - 1), 0, EINA_TRUE); + _text_clear(ty, cells, + ty->w * (ty->h - ty->circular_offset - 1 - ty->state.cy), + 0, EINA_TRUE); } break; case TERMPTY_CLR_BEGIN: