Fix: don't hide cursor when on row 0 in draw_frame
This commit is contained in:
parent
23b78850da
commit
3cfcc0ac86
1 changed files with 1 additions and 1 deletions
2
moerx.c
2
moerx.c
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue