[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.58 and 1.59

version 1.58, 2020/05/16 16:02:24 version 1.59, 2020/05/16 16:35:13
Line 73 
Line 73 
                         bd = key_bindings_next(table, bd);                          bd = key_bindings_next(table, bd);
                         continue;                          continue;
                 }                  }
                 width = utf8_cstrwidth(key_string_lookup_key(bd->key));                  width = utf8_cstrwidth(key_string_lookup_key(bd->key, 0));
                 if (width > keywidth)                  if (width > keywidth)
                         keywidth = width;                          keywidth = width;
   
Line 106 
Line 106 
                         continue;                          continue;
                 }                  }
                 found = 1;                  found = 1;
                 key = key_string_lookup_key(bd->key);                  key = key_string_lookup_key(bd->key, 0);
   
                 if (bd->note == NULL || *bd->note == '\0')                  if (bd->note == NULL || *bd->note == '\0')
                         note = cmd_list_print(bd->cmdlist, 1);                          note = cmd_list_print(bd->cmdlist, 1);
Line 135 
Line 135 
         *prefix = options_get_number(global_s_options, "prefix");          *prefix = options_get_number(global_s_options, "prefix");
         if (!args_has(args, 'P')) {          if (!args_has(args, 'P')) {
                 if (*prefix != KEYC_NONE)                  if (*prefix != KEYC_NONE)
                         xasprintf(&s, "%s ", key_string_lookup_key(*prefix));                          xasprintf(&s, "%s ", key_string_lookup_key(*prefix, 0));
                 else                  else
                         s = xstrdup("");                          s = xstrdup("");
         } else          } else
Line 221 
Line 221 
                                 bd = key_bindings_next(table, bd);                                  bd = key_bindings_next(table, bd);
                                 continue;                                  continue;
                         }                          }
                         key = args_escape(key_string_lookup_key(bd->key));                          key = args_escape(key_string_lookup_key(bd->key, 0));
   
                         if (bd->flags & KEY_BINDING_REPEAT)                          if (bd->flags & KEY_BINDING_REPEAT)
                                 repeat = 1;                                  repeat = 1;
Line 255 
Line 255 
                                 continue;                                  continue;
                         }                          }
                         found = 1;                          found = 1;
                         key = args_escape(key_string_lookup_key(bd->key));                          key = args_escape(key_string_lookup_key(bd->key, 0));
   
                         if (!repeat)                          if (!repeat)
                                 r = "";                                  r = "";

Legend:
Removed from v.1.58  
changed lines
  Added in v.1.59