diff options
author | zachir <zachir@librem.one> | 2023-06-01 17:12:55 -0500 |
---|---|---|
committer | zachir <zachir@librem.one> | 2023-06-01 17:12:55 -0500 |
commit | 8cda47f8e8b2db37f5c69b4cdb748ac31a2e6e23 (patch) | |
tree | ff64c17e736e4776467fd433d8ef9c66ee65544d /st.c | |
parent | 7f0f15dd61863da9eae06391b47dcbd2878c3121 (diff) |
Diffstat (limited to 'st.c')
-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; |