diff options
-rw-r--r-- | st.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |