1
0
Fork 0
forked from murx/murx

Fix: don't hide cursor when on row 0 in draw_frame

This commit is contained in:
Armin 2026-11-16 00:16:27 +01:00
commit 3cfcc0ac86

View file

@ -2184,7 +2184,7 @@ static void draw_frame(Session *s, Client *c, Grid *scr) {
s->cur && s->cur->active && s->cur->active->app_cursor; s->cur && s->cur->active && s->cur->active->app_cursor;
buf_puts(&b, app_cursor ? "\x1b[?1h" : "\x1b[?1l"); buf_puts(&b, app_cursor ? "\x1b[?1h" : "\x1b[?1l");
buf_puts(&b, "\x1b[0m"); buf_puts(&b, "\x1b[0m");
if (vis && (cy == 0 || cx >= vw || cy >= vh)) vis = 0; if (vis && (cx >= vw || cy >= vh)) vis = 0;
if (vis) { if (vis) {
buf_printf(&b, "\x1b[%d;%dH\x1b[?25h", cy + 1 + offy, cx + 1 + offx); buf_printf(&b, "\x1b[%d;%dH\x1b[?25h", cy + 1 + offy, cx + 1 + offx);
} else { } else {