aboutsummaryrefslogtreecommitdiffstats
path: root/fm.c
diff options
context:
space:
mode:
authorverdant <im@verdant.ee>2026-07-23 18:58:40 +0800
committerverdant <im@verdant.ee>2026-07-23 18:58:40 +0800
commit80ac2501501f83f7c64a5591b2075468a5fab6b5 (patch)
tree9ab6b4865d349106f1163cc48db548f413a6cc99 /fm.c
parentb23e2bfe015d779beab188e260dac145296352a6 (diff)
downloadsf-80ac2501501f83f7c64a5591b2075468a5fab6b5.tar.gz
sf-80ac2501501f83f7c64a5591b2075468a5fab6b5.zip
Add scroll state and redraw tracking to fm_info
Diffstat (limited to 'fm.c')
-rw-r--r--fm.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/fm.c b/fm.c
index afc7d08..66e588f 100644
--- a/fm.c
+++ b/fm.c
@@ -42,6 +42,12 @@ static fm_info *fm_w_init(terminal *t)
f->fm_r->start_x = fm_r_startx;
f->fm_r->win = fm_r->win;
+ f->top = 0;
+ f->bottom = fm_h - 1;
+ log_write(LOG_INFO, "t->windows[i]->height = %d",
+ t->windows[i]->height);
+ f->margin_bottom = 3;
+ f->needs_redraw = 1;
return f;
}
void fm_getdir(fm_info *f);