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

Diff for /src/usr.bin/tmux/cmd-queue.c between version 1.106 and 1.107

version 1.106, 2021/08/21 10:28:05 version 1.107, 2021/08/21 17:25:32
Line 478 
Line 478 
         }          }
 }  }
   
   /* Empty command callback. */
   static enum cmd_retval
   cmdq_empty_command(__unused struct cmdq_item *item, __unused void *data)
   {
           return (CMD_RETURN_NORMAL);
   }
   
 /* Get a command for the command queue. */  /* Get a command for the command queue. */
 struct cmdq_item *  struct cmdq_item *
 cmdq_get_command(struct cmd_list *cmdlist, struct cmdq_state *state)  cmdq_get_command(struct cmd_list *cmdlist, struct cmdq_state *state)
Line 487 
Line 494 
         const struct cmd_entry  *entry;          const struct cmd_entry  *entry;
         int                      created = 0;          int                      created = 0;
   
           if ((cmd = cmd_list_first(cmdlist)) == NULL)
                   return (cmdq_get_callback(cmdq_empty_command, NULL));
   
         if (state == NULL) {          if (state == NULL) {
                 state = cmdq_new_state(NULL, NULL, 0);                  state = cmdq_new_state(NULL, NULL, 0);
                 created = 1;                  created = 1;
         }          }
   
         cmd = cmd_list_first(cmdlist);  
         while (cmd != NULL) {          while (cmd != NULL) {
                 entry = cmd_get_entry(cmd);                  entry = cmd_get_entry(cmd);
   

Legend:
Removed from v.1.106  
changed lines
  Added in v.1.107