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

Diff for /src/usr.bin/tmux/cmd-list-keys.c between version 1.9 and 1.10

version 1.9, 2009/11/13 19:53:29 version 1.10, 2009/11/18 10:18:25
Line 71 
Line 71 
                 key = key_string_lookup_key(bd->key & ~KEYC_PREFIX);                  key = key_string_lookup_key(bd->key & ~KEYC_PREFIX);
                 if (key == NULL)                  if (key == NULL)
                         continue;                          continue;
                 if (!(bd->key & KEYC_PREFIX))                  used = xsnprintf(tmp, sizeof tmp, "%*s: ", width, key);
                         used = xsnprintf(tmp, sizeof tmp, "[%s]: ", key);  
                 else  
                         used = xsnprintf(tmp, sizeof tmp, "%*s: ", width, key);  
                 if (used >= sizeof tmp)                  if (used >= sizeof tmp)
                         continue;                          continue;
   
                   if (!(bd->key & KEYC_PREFIX)) {
                           used = strlcat(tmp, "(no prefix) ", sizeof tmp);
                           if (used >= sizeof tmp)
                                   continue;
                   }
                 cmd_list_print(bd->cmdlist, tmp + used, (sizeof tmp) - used);                  cmd_list_print(bd->cmdlist, tmp + used, (sizeof tmp) - used);
                 ctx->print(ctx, "%s", tmp);                  ctx->print(ctx, "%s", tmp);
         }          }

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10