aboutsummaryrefslogtreecommitdiffstats
path: root/fm.c
diff options
context:
space:
mode:
authorverdant <im@verdant.ee>2026-07-23 18:57:03 +0800
committerverdant <im@verdant.ee>2026-07-23 18:57:03 +0800
commit9b7650bc087196c0b1f4ba78982150b2345b36f9 (patch)
treeeb13b351691ae07dc92bffbf9ac5cd9f6ef63d9b /fm.c
parent0d4d4727d4bb5dad874278d2fb76dc7ac2780a5f (diff)
downloadsf-9b7650bc087196c0b1f4ba78982150b2345b36f9.tar.gz
sf-9b7650bc087196c0b1f4ba78982150b2345b36f9.zip
Fix window positioning and height calculation
Diffstat (limited to 'fm.c')
-rw-r--r--fm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fm.c b/fm.c
index b0a2fd0..88d87de 100644
--- a/fm.c
+++ b/fm.c
@@ -15,8 +15,8 @@ static fm_info *fm_w_init(terminal *t)
}
int fm_w = t->maxx / 2;
- int fm_h = t->maxy - t->windows[i]->height;
- int fm_starty = t->windows[i]->height - STAT_BAR_HEIGHT;
+ int fm_h = t->maxy - t->windows[i]->height - 1;
+ int fm_starty = t->windows[i]->height;
int fm_l_startx = 0;
int fm_r_startx = t->maxx / 2;