[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.44 and 1.45

version 1.44, 2017/05/01 12:20:55 version 1.45, 2018/08/02 11:44:07
Line 75 
Line 75 
   
         repeat = 0;          repeat = 0;
         tablewidth = keywidth = 0;          tablewidth = keywidth = 0;
         RB_FOREACH(table, key_tables, &key_tables) {          table = key_bindings_first_table ();
                 if (tablename != NULL && strcmp(table->name, tablename) != 0)          while (table != NULL) {
                   if (tablename != NULL && strcmp(table->name, tablename) != 0) {
                           table = key_bindings_next_table(table);
                         continue;                          continue;
                 RB_FOREACH(bd, key_bindings, &table->key_bindings) {                  }
                   bd = key_bindings_first(table);
                   while (bd != NULL) {
                         key = key_string_lookup_key(bd->key);                          key = key_string_lookup_key(bd->key);
   
                         if (bd->flags & KEY_BINDING_REPEAT)                          if (bd->flags & KEY_BINDING_REPEAT)
Line 90 
Line 94 
                         width = utf8_cstrwidth(key);                          width = utf8_cstrwidth(key);
                         if (width > keywidth)                          if (width > keywidth)
                                 keywidth = width;                                  keywidth = width;
   
                           bd = key_bindings_next(table, bd);
                 }                  }
                   table = key_bindings_next_table(table);
         }          }
   
         RB_FOREACH(table, key_tables, &key_tables) {          table = key_bindings_first_table ();
                 if (tablename != NULL && strcmp(table->name, tablename) != 0)          while (table != NULL) {
                   if (tablename != NULL && strcmp(table->name, tablename) != 0) {
                           table = key_bindings_next_table(table);
                         continue;                          continue;
                 RB_FOREACH(bd, key_bindings, &table->key_bindings) {                  }
                   bd = key_bindings_first(table);
                   while (bd != NULL) {
                         key = key_string_lookup_key(bd->key);                          key = key_string_lookup_key(bd->key);
   
                         if (!repeat)                          if (!repeat)
Line 122 
Line 133 
                         free(cp);                          free(cp);
   
                         cmdq_print(item, "bind-key %s", tmp);                          cmdq_print(item, "bind-key %s", tmp);
                           bd = key_bindings_next(table, bd);
                 }                  }
                   table = key_bindings_next_table(table);
         }          }
   
         return (CMD_RETURN_NORMAL);          return (CMD_RETURN_NORMAL);

Legend:
Removed from v.1.44  
changed lines
  Added in v.1.45