[BACK]Return to server.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / tmux

Diff for /src/usr.bin/tmux/server.c between version 1.10 and 1.11

version 1.10, 2009/07/18 14:59:25 version 1.11, 2009/07/19 13:21:40
Line 840 
Line 840 
   
         /* 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;
Line 1072 
Line 1074 
                  * 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;

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11