summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzachir <zachir@librem.one>2021-09-23 00:17:17 -0500
committerzachir <zachir@librem.one>2021-09-23 00:17:17 -0500
commitaf48edc0171ad9be36dff1fbabc0cea0bdefbd85 (patch)
treed229463b5e72e324b65a7274f900e1c9f5c30c67
parent5e61b38fb5c2e7b4100e2d391711c019870fb9d8 (diff)
st.c: reset hist buffer on clear
-rw-r--r--st.c3
1 files changed, 3 insertions, 0 deletions
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;