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

Diff for /src/usr.bin/less/cmdbuf.c between version 1.19 and 1.20

version 1.19, 2019/06/28 13:35:01 version 1.20, 2019/09/02 14:07:45
Line 179 
Line 179 
                                 if (bswidth != NULL)                                  if (bswidth != NULL)
                                         *bswidth = prlen;                                          *bswidth = prlen;
                         } else {                          } else {
                                 LWCHAR prev_ch = step_char(&p, -1, cmdbuf);                                  if (pwidth != NULL)
                                 if (is_combining_char(prev_ch, ch)) {                                          *pwidth = is_wide_char(ch) ? 2 : 1;
                                         if (pwidth != NULL)                                  if (bswidth != NULL)
                                                 *pwidth = 0;                                          *bswidth = 1;
                                         if (bswidth != NULL)  
                                                 *bswidth = 0;  
                                 } else {  
                                         if (pwidth != NULL)  
                                                 *pwidth = is_wide_char(ch)  
                                                     ? 2 : 1;  
                                         if (bswidth != NULL)  
                                                 *bswidth = 1;  
                                 }  
                         }                          }
                 }                  }
         }          }

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.20