From af48edc0171ad9be36dff1fbabc0cea0bdefbd85 Mon Sep 17 00:00:00 2001 From: zachir Date: Thu, 23 Sep 2021 00:17:17 -0500 Subject: st.c: reset hist buffer on clear --- st.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'st.c') diff --git a/st.c b/st.c index a436759..c765947 100644 --- a/st.c +++ b/st.c @@ -1779,14 +1779,17 @@ csihandle(void) tclearregion(0, term.c.y+1, term.col-1, term.row-1); } + term.histi=0; break; case 1: /* above */ if (term.c.y > 1) tclearregion(0, 0, term.col-1, term.c.y-1); tclearregion(0, term.c.y, term.c.x, term.c.y); + term.histi=0; break; case 2: /* all */ tclearregion(0, 0, term.col-1, term.row-1); + term.histi=0; break; default: goto unknown; -- cgit v1.2.3