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

Diff for /src/usr.bin/tmux/key-bindings.c between version 1.22 and 1.23

version 1.22, 2010/06/21 21:44:09 version 1.23, 2010/06/26 18:20:53
Line 178 
Line 178 
   
         for (i = 0; i < nitems(table); i++) {          for (i = 0; i < nitems(table); i++) {
                 cmdlist = xmalloc(sizeof *cmdlist);                  cmdlist = xmalloc(sizeof *cmdlist);
                 TAILQ_INIT(cmdlist);                  TAILQ_INIT(&cmdlist->list);
                   cmdlist->references = 1;
   
                 cmd = xmalloc(sizeof *cmd);                  cmd = xmalloc(sizeof *cmd);
                 cmd->entry = table[i].entry;                  cmd->entry = table[i].entry;
                 cmd->data = NULL;                  cmd->data = NULL;
                 if (cmd->entry->init != NULL)                  if (cmd->entry->init != NULL)
                         cmd->entry->init(cmd, table[i].key);                          cmd->entry->init(cmd, table[i].key);
                 TAILQ_INSERT_HEAD(cmdlist, cmd, qentry);                  TAILQ_INSERT_HEAD(&cmdlist->list, cmd, qentry);
   
                 key_bindings_add(                  key_bindings_add(
                     table[i].key | KEYC_PREFIX, table[i].can_repeat, cmdlist);                      table[i].key | KEYC_PREFIX, table[i].can_repeat, cmdlist);
Line 259 
Line 260 
         ctx.cmdclient = NULL;          ctx.cmdclient = NULL;
   
         readonly = 1;          readonly = 1;
         TAILQ_FOREACH(cmd, bd->cmdlist, qentry) {          TAILQ_FOREACH(cmd, &bd->cmdlist->list, qentry) {
                 if (!(cmd->entry->flags & CMD_READONLY))                  if (!(cmd->entry->flags & CMD_READONLY))
                         readonly = 0;                          readonly = 0;
         }          }

Legend:
Removed from v.1.22  
changed lines
  Added in v.1.23