[BACK]Return to tty-keys.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / tmux

Diff for /src/usr.bin/tmux/tty-keys.c between version 1.106 and 1.107

version 1.106, 2019/02/16 19:04:34 version 1.107, 2019/03/18 11:58:40
Line 398 
Line 398 
 {  {
         const struct tty_default_key_raw        *tdkr;          const struct tty_default_key_raw        *tdkr;
         const struct tty_default_key_code       *tdkc;          const struct tty_default_key_code       *tdkc;
         u_int                                    i, size;          u_int                                    i;
         const char                              *s, *value;          const char                              *s, *value;
         struct options_entry                    *o;          struct options_entry                    *o;
           struct options_array_item               *a;
   
         if (tty->key_tree != NULL)          if (tty->key_tree != NULL)
                 tty_keys_free(tty);                  tty_keys_free(tty);
Line 423 
Line 424 
         }          }
   
         o = options_get(global_options, "user-keys");          o = options_get(global_options, "user-keys");
         if (o != NULL && options_array_size(o, &size) != -1) {          if (o != NULL) {
                 for (i = 0; i < size; i++) {                  a = options_array_first(o);
                         value = options_array_get(o, i);                  while (a != NULL) {
                           value = options_array_item_value(a);
                         if (value != NULL)                          if (value != NULL)
                                 tty_keys_add(tty, value, KEYC_USER + i);                                  tty_keys_add(tty, value, KEYC_USER + i);
                           a = options_array_next(a);
                 }                  }
         }          }
 }  }

Legend:
Removed from v.1.106  
changed lines
  Added in v.1.107