[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.12 and 1.13

version 1.12, 2015/11/09 14:25:32 version 1.13, 2015/11/23 09:42:57
Line 170 
Line 170 
         if (len == 1) {          if (len == 1) {
                 pr = prchar((int)ch);                  pr = prchar((int)ch);
                 if (pwidth != NULL || bswidth != NULL) {                  if (pwidth != NULL || bswidth != NULL) {
                         int len = strlen(pr);                          int prlen = strlen(pr);
                         if (pwidth != NULL)                          if (pwidth != NULL)
                                 *pwidth = len;                                  *pwidth = prlen;
                         if (bswidth != NULL)                          if (bswidth != NULL)
                                 *bswidth = len;                                  *bswidth = prlen;
                 }                  }
         } else {          } else {
                 pr = prutfchar(ch);                  pr = prutfchar(ch);
Line 185 
Line 185 
                                 if (bswidth != NULL)                                  if (bswidth != NULL)
                                         *bswidth = 0;                                          *bswidth = 0;
                         } else if (is_ubin_char(ch)) {                          } else if (is_ubin_char(ch)) {
                                 int len = strlen(pr);                                  int prlen = strlen(pr);
                                 if (pwidth != NULL)                                  if (pwidth != NULL)
                                         *pwidth = len;                                          *pwidth = prlen;
                                 if (bswidth != NULL)                                  if (bswidth != NULL)
                                         *bswidth = len;                                          *bswidth = prlen;
                         } else {                          } else {
                                 LWCHAR prev_ch = step_char(&p, -1, cmdbuf);                                  LWCHAR prev_ch = step_char(&p, -1, cmdbuf);
                                 if (is_combining_char(prev_ch, ch)) {                                  if (is_combining_char(prev_ch, ch)) {

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13