version 1.244, 2017/09/06 07:12:41 |
version 1.245, 2017/10/16 19:30:53 |
|
|
struct window_pane *wp = w->active, *loop; |
struct window_pane *wp = w->active, *loop; |
struct screen *s = wp->screen; |
struct screen *s = wp->screen; |
struct options *oo = c->session->options; |
struct options *oo = c->session->options; |
int status, mode, o; |
int lines, mode; |
|
|
if (c->flags & (CLIENT_CONTROL|CLIENT_SUSPENDED)) |
if (c->flags & (CLIENT_CONTROL|CLIENT_SUSPENDED)) |
return; |
return; |
|
|
tty_region_off(&c->tty); |
tty_region_off(&c->tty); |
tty_margin_off(&c->tty); |
tty_margin_off(&c->tty); |
|
|
status = options_get_number(oo, "status"); |
if (status_at_line(c) != 0) |
if (!window_pane_visible(wp) || wp->yoff + s->cy >= c->tty.sy - status) |
lines = 0; |
|
else |
|
lines = status_line_size(c->session); |
|
if (!window_pane_visible(wp) || wp->yoff + s->cy >= c->tty.sy - lines) |
tty_cursor(&c->tty, 0, 0); |
tty_cursor(&c->tty, 0, 0); |
else { |
else |
o = status && options_get_number(oo, "status-position") == 0; |
tty_cursor(&c->tty, wp->xoff + s->cx, lines + wp->yoff + s->cy); |
tty_cursor(&c->tty, wp->xoff + s->cx, o + wp->yoff + s->cy); |
|
} |
|
|
|
/* |
/* |
* Set mouse mode if requested. To support dragging, always use button |
* Set mouse mode if requested. To support dragging, always use button |