[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.22 and 1.23

version 1.22, 2015/11/12 11:05:34 version 1.23, 2015/12/12 18:19:00
Line 51 
Line 51 
                         return (CMD_RETURN_ERROR);                          return (CMD_RETURN_ERROR);
                 }                  }
                 key = key_string_lookup_string(args->argv[0]);                  key = key_string_lookup_string(args->argv[0]);
                 if (key == KEYC_NONE) {                  if (key == KEYC_NONE || key == KEYC_UNKNOWN) {
                         cmdq_error(cmdq, "unknown key: %s", args->argv[0]);                          cmdq_error(cmdq, "unknown key: %s", args->argv[0]);
                         return (CMD_RETURN_ERROR);                          return (CMD_RETURN_ERROR);
                 }                  }
Line 60 
Line 60 
                         cmdq_error(cmdq, "key given with -a");                          cmdq_error(cmdq, "key given with -a");
                         return (CMD_RETURN_ERROR);                          return (CMD_RETURN_ERROR);
                 }                  }
                 key = KEYC_NONE;                  key = KEYC_UNKNOWN;
         }          }
   
         if (args_has(args, 't'))          if (args_has(args, 't'))
                 return (cmd_unbind_key_mode_table(self, cmdq, key));                  return (cmd_unbind_key_mode_table(self, cmdq, key));
   
         if (key == KEYC_NONE) {          if (key == KEYC_UNKNOWN) {
                 tablename = args_get(args, 'T');                  tablename = args_get(args, 'T');
                 if (tablename == NULL) {                  if (tablename == NULL) {
                         key_bindings_remove_table("root");                          key_bindings_remove_table("root");
Line 109 
Line 109 
                 return (CMD_RETURN_ERROR);                  return (CMD_RETURN_ERROR);
         }          }
   
         if (key == KEYC_NONE) {          if (key == KEYC_UNKNOWN) {
                 while (!RB_EMPTY(mtab->tree)) {                  while (!RB_EMPTY(mtab->tree)) {
                         mbind = RB_ROOT(mtab->tree);                          mbind = RB_ROOT(mtab->tree);
                         RB_REMOVE(mode_key_tree, mtab->tree, mbind);                          RB_REMOVE(mode_key_tree, mtab->tree, mbind);

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