[BACK]Return to term.c CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Diff for /mandoc/term.c between version 1.248 and 1.249

version 1.248, 2015/04/29 18:35:00 version 1.249, 2015/08/30 21:10:56
Line 499  term_word(struct termp *p, const char *word)
Line 499  term_word(struct termp *p, const char *word)
                                                 p->flags |= TERMP_BACKBEFORE;                                                  p->flags |= TERMP_BACKBEFORE;
                                 }                                  }
                         }                          }
                           /* Trim trailing backspace/blank pair. */
                           if (p->col > 2 && p->buf[p->col - 1] == ' ')
                                   p->col -= 2;
                         continue;                          continue;
                 default:                  default:
                         continue;                          continue;
Line 561  encode1(struct termp *p, int c)
Line 564  encode1(struct termp *p, int c)
             p->fontq[p->fonti] : TERMFONT_NONE;              p->fontq[p->fonti] : TERMFONT_NONE;
   
         if (p->flags & TERMP_BACKBEFORE) {          if (p->flags & TERMP_BACKBEFORE) {
                 p->buf[p->col++] = 8;                  if (p->buf[p->col - 1] == ' ')
                           p->col--;
                   else
                           p->buf[p->col++] = 8;
                 p->flags &= ~TERMP_BACKBEFORE;                  p->flags &= ~TERMP_BACKBEFORE;
         }          }
         if (TERMFONT_UNDER == f || TERMFONT_BI == f) {          if (TERMFONT_UNDER == f || TERMFONT_BI == f) {

Legend:
Removed from v.1.248  
changed lines
  Added in v.1.249

CVSweb