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

Diff for /src/usr.bin/tmux/cmd-unbind-key.c between version 1.11 and 1.12

version 1.11, 2011/08/16 09:37:48 version 1.12, 2012/01/21 11:12:13
Line 57 
Line 57 
         int                      key;          int                      key;
   
         if (args_has(args, 'a')) {          if (args_has(args, 'a')) {
                 while (!SPLAY_EMPTY(&key_bindings)) {                  while (!RB_EMPTY(&key_bindings)) {
                         bd = SPLAY_ROOT(&key_bindings);                          bd = RB_ROOT(&key_bindings);
                         key_bindings_remove(bd->key);                          key_bindings_remove(bd->key);
                 }                  }
                 return (0);                  return (0);
Line 95 
Line 95 
   
         mtmp.key = key;          mtmp.key = key;
         mtmp.mode = !!args_has(args, 'c');          mtmp.mode = !!args_has(args, 'c');
         if ((mbind = SPLAY_FIND(mode_key_tree, mtab->tree, &mtmp)) != NULL) {          if ((mbind = RB_FIND(mode_key_tree, mtab->tree, &mtmp)) != NULL) {
                 SPLAY_REMOVE(mode_key_tree, mtab->tree, mbind);                  RB_REMOVE(mode_key_tree, mtab->tree, mbind);
                 xfree(mbind);                  xfree(mbind);
         }          }
         return (0);          return (0);

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12