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

Diff for /src/usr.bin/tmux/cmd-if-shell.c between version 1.61 and 1.62

version 1.61, 2019/05/23 11:13:30 version 1.62, 2019/05/25 07:15:53
Line 159 
Line 159 
         struct cmd_if_shell_data        *cdata = job_get_data(job);          struct cmd_if_shell_data        *cdata = job_get_data(job);
         struct client                   *c = cdata->client;          struct client                   *c = cdata->client;
         struct mouse_event              *m = &cdata->mouse;          struct mouse_event              *m = &cdata->mouse;
         struct cmdq_item                *new_item;          struct cmdq_item                *new_item = NULL;
         char                            *cmd;          char                            *cmd;
         int                              status;          int                              status;
         struct cmd_parse_result         *pr;          struct cmd_parse_result         *pr;
Line 175 
Line 175 
         pr = cmd_parse_from_string(cmd, &cdata->input);          pr = cmd_parse_from_string(cmd, &cdata->input);
         switch (pr->status) {          switch (pr->status) {
         case CMD_PARSE_EMPTY:          case CMD_PARSE_EMPTY:
                 new_item = NULL;  
                 break;                  break;
         case CMD_PARSE_ERROR:          case CMD_PARSE_ERROR:
                 new_item = cmdq_get_error(pr->error);                  if (cdata->item != NULL)
                          cmdq_error(cdata->item, "%s", pr->error);
                 free(pr->error);                  free(pr->error);
                 break;                  break;
         case CMD_PARSE_SUCCESS:          case CMD_PARSE_SUCCESS:

Legend:
Removed from v.1.61  
changed lines
  Added in v.1.62