From 8cda47f8e8b2db37f5c69b4cdb748ac31a2e6e23 Mon Sep 17 00:00:00 2001 From: zachir Date: Thu, 1 Jun 2023 17:12:55 -0500 Subject: Fix previous scrollback clear patch --- st.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/st.c b/st.c index 28a3aaf..1ec550a 100644 --- a/st.c +++ b/st.c @@ -750,7 +750,6 @@ selclear(void) return; selremove(); tsetdirt(sel.nb.y, sel.ne.y); - histclean(); } void @@ -991,6 +990,7 @@ histclean() { for (int i = 0; i < HISTSIZE; i++) term.hist[i] = xmalloc(term.col * sizeof(Glyph)); + term.histf = 0; } void @@ -2047,6 +2047,7 @@ csihandle(void) if (n >= 0) tscrollup(0, term.row-1, n+1, SCROLL_SAVEHIST); tscrollup(0, term.row-1, term.row-n-1, SCROLL_NOSAVEHIST); + histclean(); break; default: goto unknown; -- cgit v1.2.3