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

Diff for /src/usr.bin/tmux/format.c between version 1.296 and 1.297

version 1.296, 2021/10/05 17:23:13 version 1.297, 2021/10/05 20:15:16
Line 1622 
Line 1622 
         if (ft->c != NULL && (ft->c->tty.flags & TTY_STARTED)) {          if (ft->c != NULL && (ft->c->tty.flags & TTY_STARTED)) {
                 if (ft->m.statusat == 0 && ft->m.y < ft->m.statuslines)                  if (ft->m.statusat == 0 && ft->m.y < ft->m.statuslines)
                         return (format_printf("%u", ft->m.x));                          return (format_printf("%u", ft->m.x));
                 if (ft->m.statusat > 0 && ft->m.y >= ft->m.statusat)                  if (ft->m.statusat > 0 && ft->m.y >= (u_int)ft->m.statusat)
                         return (format_printf("%u", ft->m.x));                          return (format_printf("%u", ft->m.x));
         }          }
         return (NULL);          return (NULL);
Line 1633 
Line 1633 
 format_cb_mouse_y(struct format_tree *ft)  format_cb_mouse_y(struct format_tree *ft)
 {  {
         struct window_pane      *wp;          struct window_pane      *wp;
         u_int                    x, y, top;          u_int                    x, y;
   
         if (!ft->m.valid)          if (!ft->m.valid)
                 return (NULL);                  return (NULL);
Line 1643 
Line 1643 
         if (ft->c != NULL && (ft->c->tty.flags & TTY_STARTED)) {          if (ft->c != NULL && (ft->c->tty.flags & TTY_STARTED)) {
                 if (ft->m.statusat == 0 && ft->m.y < ft->m.statuslines)                  if (ft->m.statusat == 0 && ft->m.y < ft->m.statuslines)
                         return (format_printf("%u", ft->m.y));                          return (format_printf("%u", ft->m.y));
                 if (ft->m.statusat > 0 && ft->m.y >= ft->m.statusat)                  if (ft->m.statusat > 0 && ft->m.y >= (u_int)ft->m.statusat)
                         return (format_printf("%u", ft->m.y - ft->m.statusat));                          return (format_printf("%u", ft->m.y - ft->m.statusat));
         }          }
         return (NULL);          return (NULL);

Legend:
Removed from v.1.296  
changed lines
  Added in v.1.297