version 1.10, 2009/07/18 14:59:25 |
version 1.11, 2009/07/19 13:21:40 |
|
|
|
|
/* Ensure cursor position and mode settings. */ |
/* Ensure cursor position and mode settings. */ |
status = options_get_number(&c->session->options, "status"); |
status = options_get_number(&c->session->options, "status"); |
if (wp->yoff + s->cy < c->tty.sy - status) |
if (!window_pane_visible(wp) || wp->yoff + s->cy >= c->tty.sy - status) |
|
tty_cursor(&c->tty, 0, 0, 0, 0); |
|
else |
tty_cursor(&c->tty, s->cx, s->cy, wp->xoff, wp->yoff); |
tty_cursor(&c->tty, s->cx, s->cy, wp->xoff, wp->yoff); |
|
|
mode = s->mode; |
mode = s->mode; |
|
|
* pane dies). |
* pane dies). |
*/ |
*/ |
if (wp->fd == -1 && !flag) { |
if (wp->fd == -1 && !flag) { |
|
layout_close_pane(wp); |
window_remove_pane(w, wp); |
window_remove_pane(w, wp); |
server_redraw_window(w); |
server_redraw_window(w); |
layout_refresh(w, 0); |
|
} else |
} else |
destroyed = 0; |
destroyed = 0; |
wp = wq; |
wp = wq; |