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

Diff for /src/usr.bin/tmux/server-client.c between version 1.389 and 1.390

version 1.389, 2021/10/28 18:54:33 version 1.390, 2021/11/15 10:58:13
Line 1706 
Line 1706 
         struct window_pane      *wp = server_client_get_pane(c), *loop;          struct window_pane      *wp = server_client_get_pane(c), *loop;
         struct screen           *s = NULL;          struct screen           *s = NULL;
         struct options          *oo = c->session->options;          struct options          *oo = c->session->options;
         int                      mode = 0, cursor, flags;          int                      mode = 0, cursor, flags, n;
         u_int                    cx = 0, cy = 0, ox, oy, sx, sy;          u_int                    cx = 0, cy = 0, ox, oy, sx, sy;
   
         if (c->flags & (CLIENT_CONTROL|CLIENT_SUSPENDED))          if (c->flags & (CLIENT_CONTROL|CLIENT_SUSPENDED))
Line 1734 
Line 1734 
         tty_margin_off(tty);          tty_margin_off(tty);
   
         /* Move cursor to pane cursor and offset. */          /* Move cursor to pane cursor and offset. */
         if (c->overlay_draw == NULL) {          if (c->prompt_string != NULL) {
                   n = options_get_number(c->session->options, "status-position");
                   if (n == 0)
                           cy = 0;
                   else {
                           n = status_line_size(c);
                           if (n == 0)
                                   cy = tty->sy - 1;
                           else
                                   cy = tty->sy - n;
                   }
                   cx = c->prompt_cursor;
                   mode &= ~MODE_CURSOR;
           } else if (c->overlay_draw == NULL) {
                 cursor = 0;                  cursor = 0;
                 tty_window_offset(tty, &ox, &oy, &sx, &sy);                  tty_window_offset(tty, &ox, &oy, &sx, &sy);
                 if (wp->xoff + s->cx >= ox && wp->xoff + s->cx <= ox + sx &&                  if (wp->xoff + s->cx >= ox && wp->xoff + s->cx <= ox + sx &&

Legend:
Removed from v.1.389  
changed lines
  Added in v.1.390