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

Diff for /src/usr.bin/tmux/input.c between version 1.89 and 1.90

version 1.89, 2015/11/13 08:09:28 version 1.90, 2015/11/14 08:25:12
Line 1921 
Line 1921 
 int  int
 input_utf8_open(struct input_ctx *ictx)  input_utf8_open(struct input_ctx *ictx)
 {  {
         log_debug("%s", __func__);          struct utf8_data        *ud = &ictx->utf8data;
   
         utf8_open(&ictx->utf8data, ictx->ch);          utf8_open(ud, ictx->ch);
   
           log_debug("%s %hhu", __func__, ud->size);
   
         return (0);          return (0);
 }  }
   
Line 1931 
Line 1934 
 int  int
 input_utf8_add(struct input_ctx *ictx)  input_utf8_add(struct input_ctx *ictx)
 {  {
           struct utf8_data        *ud = &ictx->utf8data;
   
           utf8_append(ud, ictx->ch);
   
         log_debug("%s", __func__);          log_debug("%s", __func__);
   
         utf8_append(&ictx->utf8data, ictx->ch);  
         return (0);          return (0);
 }  }
   
Line 1941 
Line 1947 
 int  int
 input_utf8_close(struct input_ctx *ictx)  input_utf8_close(struct input_ctx *ictx)
 {  {
         log_debug("%s", __func__);          struct utf8_data        *ud = &ictx->utf8data;
   
         utf8_append(&ictx->utf8data, ictx->ch);          utf8_append(ud, ictx->ch);
   
         utf8_copy(&ictx->cell.cell.data, &ictx->utf8data);          log_debug("%s %hhu '%*s' (width %hhu)", __func__, ud->size,
               (int)ud->size, ud->data, ud->width);
   
           utf8_copy(&ictx->cell.cell.data, ud);
         screen_write_cell(&ictx->ctx, &ictx->cell.cell);          screen_write_cell(&ictx->ctx, &ictx->cell.cell);
   
         return (0);          return (0);

Legend:
Removed from v.1.89  
changed lines
  Added in v.1.90