[BACK]Return to cmd-display-menu.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / tmux

Diff for /src/usr.bin/tmux/cmd-display-menu.c between version 1.30 and 1.31

version 1.30, 2021/08/22 13:48:29 version 1.31, 2021/08/23 08:17:41
Line 218 
Line 218 
         else if (n < 0)          else if (n < 0)
                 n = 0;                  n = 0;
         *px = n;          *px = n;
         log_debug("%s: -x: %s = %s = %u", __func__, xp, p, *px);          log_debug("%s: -x: %s = %s = %u (-w %u)", __func__, xp, p, *px, w);
         free(p);          free(p);
   
         /* Expand vertical position  */          /* Expand vertical position  */
Line 244 
Line 244 
         else if (n < 0)          else if (n < 0)
                 n = 0;                  n = 0;
         *py = n;          *py = n;
         log_debug("%s: -y: %s = %s = %u", __func__, yp, p, *py);          log_debug("%s: -y: %s = %s = %u (-h %u)", __func__, yp, p, *py, h);
         free(p);          free(p);
   
         return (1);          return (1);
Line 359 
Line 359 
                 }                  }
         }          }
   
         if (w > tty->sx - 1)          if (w > tty->sx)
                 w = tty->sx - 1;                  w = tty->sx;
         if (h > tty->sy - 1)          if (h > tty->sy)
                 h = tty->sy - 1;                  h = tty->sy;
         if (!cmd_display_menu_get_position(tc, item, args, &px, &py, w, h))          if (!cmd_display_menu_get_position(tc, item, args, &px, &py, w, h))
                 return (CMD_RETURN_NORMAL);                  return (CMD_RETURN_NORMAL);
   

Legend:
Removed from v.1.30  
changed lines
  Added in v.1.31