commit c37ff485ddaa74c995413e81ef3acbfc3e65109e
parent ee6c07ec89043ba45acad95e9311792cde932f0b
Author: hhvn <dev@hhvn.uk>
Date: Mon, 15 Nov 2021 19:31:35 +0000
ui.c: only show history items with HIST_SHOW
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/ui.c b/ui.c
@@ -695,6 +695,8 @@ ui_draw_main(void) {
y = windows[Win_main].h;
for (p = selected.history->history; p && y > 0; p = p->next) {
+ if (!(p->options & HIST_SHOW))
+ continue;
ui_strlenc(&windows[Win_main], p->raw, &lines);
y = y - lines;
if (y < lines) {