[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.137 and 1.138

version 1.137, 2020/05/22 15:43:38 version 1.138, 2020/05/25 18:57:25
Line 578 
Line 578 
         struct tty_key          *tk, *tk1;          struct tty_key          *tk, *tk1;
         struct utf8_data         ud;          struct utf8_data         ud;
         enum utf8_state          more;          enum utf8_state          more;
           utf8_char                uc;
         u_int                    i;          u_int                    i;
         wchar_t                  wc;  
   
         log_debug("%s: next key is %zu (%.*s) (expired=%d)", c->name, len,          log_debug("%s: next key is %zu (%.*s) (expired=%d)", c->name, len,
             (int)len, buf, expired);              (int)len, buf, expired);
Line 611 
Line 611 
                 if (more != UTF8_DONE)                  if (more != UTF8_DONE)
                         return (-1);                          return (-1);
   
                 if (utf8_combine(&ud, &wc) != UTF8_DONE)                  if (utf8_from_data(&ud, &uc) != UTF8_DONE)
                         return (-1);                          return (-1);
                 *key = wc;                  *key = uc;
   
                 log_debug("%s: UTF-8 key %.*s %#llx", c->name, (int)ud.size,                  log_debug("%s: UTF-8 key %.*s %#llx", c->name, (int)ud.size,
                     buf, *key);                      ud.data, *key);
                 return (0);                  return (0);
         }          }
   

Legend:
Removed from v.1.137  
changed lines
  Added in v.1.138