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

Diff for /src/usr.bin/tmux/cmd-confirm-before.c between version 1.54 and 1.55

version 1.54, 2024/04/15 08:19:55 version 1.55, 2024/05/15 08:39:30
Line 92 
Line 92 
                         cdata->confirm_key = confirm_key[0];                          cdata->confirm_key = confirm_key[0];
                 else {                  else {
                         cmdq_error(item, "invalid confirm key");                          cmdq_error(item, "invalid confirm key");
                           free(cdata);
                         return (CMD_RETURN_ERROR);                          return (CMD_RETURN_ERROR);
                 }                  }
         }          }
Line 102 
Line 103 
                 xasprintf(&new_prompt, "%s ", prompt);                  xasprintf(&new_prompt, "%s ", prompt);
         else {          else {
                 cmd = cmd_get_entry(cmd_list_first(cdata->cmdlist))->name;                  cmd = cmd_get_entry(cmd_list_first(cdata->cmdlist))->name;
                 xasprintf(&new_prompt, "Confirm '%s'? (%c/n) ",                  xasprintf(&new_prompt, "Confirm '%s'? (%c/n) ", cmd,
                 cmd, cdata->confirm_key);                      cdata->confirm_key);
         }          }
   
         status_prompt_set(tc, target, new_prompt, NULL,          status_prompt_set(tc, target, new_prompt, NULL,

Legend:
Removed from v.1.54  
changed lines
  Added in v.1.55