summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--st.c3
1 files changed, 2 insertions, 1 deletions
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;