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

Diff for /src/usr.bin/tmux/cmd-show-messages.c between version 1.27 and 1.28

version 1.27, 2017/04/22 10:22:39 version 1.28, 2018/08/23 15:45:05
Line 44 
Line 44 
 };  };
   
 static int      cmd_show_messages_terminals(struct cmdq_item *, int);  static int      cmd_show_messages_terminals(struct cmdq_item *, int);
 static int      cmd_show_messages_jobs(struct cmdq_item *, int);  
   
 static int  static int
 cmd_show_messages_terminals(struct cmdq_item *item, int blank)  cmd_show_messages_terminals(struct cmdq_item *item, int blank)
Line 67 
Line 66 
         return (n != 0);          return (n != 0);
 }  }
   
 static int  
 cmd_show_messages_jobs(struct cmdq_item *item, int blank)  
 {  
         struct job      *job;  
         u_int            n;  
   
         n = 0;  
         LIST_FOREACH(job, &all_jobs, entry) {  
                 if (blank) {  
                         cmdq_print(item, "%s", "");  
                         blank = 0;  
                 }  
                 cmdq_print(item, "Job %u: %s [fd=%d, pid=%ld, status=%d]",  
                     n, job->cmd, job->fd, (long)job->pid, job->status);  
                 n++;  
         }  
         return (n != 0);  
 }  
   
 static enum cmd_retval  static enum cmd_retval
 cmd_show_messages_exec(struct cmd *self, struct cmdq_item *item)  cmd_show_messages_exec(struct cmd *self, struct cmdq_item *item)
 {  {
Line 104 
Line 84 
                 done = 1;                  done = 1;
         }          }
         if (args_has(args, 'J')) {          if (args_has(args, 'J')) {
                 cmd_show_messages_jobs(item, blank);                  job_print_summary(item, blank);
                 done = 1;                  done = 1;
         }          }
         if (done)          if (done)

Legend:
Removed from v.1.27  
changed lines
  Added in v.1.28