[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.57 and 1.58

version 1.57, 2020/05/16 15:54:20 version 1.58, 2020/05/16 16:02:24
Line 68 
Line 68 
         while (bd != NULL) {          while (bd != NULL) {
                 if ((only != KEYC_UNKNOWN && bd->key != only) ||                  if ((only != KEYC_UNKNOWN && bd->key != only) ||
                     KEYC_IS_MOUSE(bd->key) ||                      KEYC_IS_MOUSE(bd->key) ||
                     bd->note == NULL) {                      bd->note == NULL ||
                       *bd->note == '\0') {
                         bd = key_bindings_next(table, bd);                          bd = key_bindings_next(table, bd);
                         continue;                          continue;
                 }                  }
Line 99 
Line 100 
         while (bd != NULL) {          while (bd != NULL) {
                 if ((only != KEYC_UNKNOWN && bd->key != only) ||                  if ((only != KEYC_UNKNOWN && bd->key != only) ||
                     KEYC_IS_MOUSE(bd->key) ||                      KEYC_IS_MOUSE(bd->key) ||
                     (bd->note == NULL && !args_has(args, 'a'))) {                      ((bd->note == NULL || *bd->note == '\0') &&
                       !args_has(args, 'a'))) {
                         bd = key_bindings_next(table, bd);                          bd = key_bindings_next(table, bd);
                         continue;                          continue;
                 }                  }
                 found = 1;                  found = 1;
                 key = key_string_lookup_key(bd->key);                  key = key_string_lookup_key(bd->key);
   
                 if (bd->note == NULL)                  if (bd->note == NULL || *bd->note == '\0')
                         note = cmd_list_print(bd->cmdlist, 1);                          note = cmd_list_print(bd->cmdlist, 1);
                 else                  else
                         note = xstrdup(bd->note);                          note = xstrdup(bd->note);

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