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

Diff for /src/usr.bin/tmux/Attic/cmd-select-prompt.c between version 1.2 and 1.3

version 1.2, 2009/07/13 23:11:35 version 1.3, 2009/07/15 17:39:00
Line 74 
Line 74 
         idx = strtonum(s, 0, UINT_MAX, &errstr);          idx = strtonum(s, 0, UINT_MAX, &errstr);
         if (errstr != NULL) {          if (errstr != NULL) {
                 xsnprintf(msg, sizeof msg, "Index %s: %s", errstr, s);                  xsnprintf(msg, sizeof msg, "Index %s: %s", errstr, s);
                 status_message_set(c, msg);                  status_message_set(c, "%s", msg);
                 return (0);                  return (0);
         }          }
   
         if (winlink_find_by_index(&c->session->windows, idx) == NULL) {          if (winlink_find_by_index(&c->session->windows, idx) == NULL) {
                 xsnprintf(msg, sizeof msg,                  xsnprintf(msg, sizeof msg,
                     "Window not found: %s:%d", c->session->name, idx);                      "Window not found: %s:%d", c->session->name, idx);
                 status_message_set(c, msg);                  status_message_set(c, "%s", msg);
                 return (0);                  return (0);
         }          }
   

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3