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

Diff for /mandoc/term.c between version 1.258 and 1.259

version 1.258, 2016/08/10 11:03:43 version 1.259, 2017/01/08 18:16:58
Line 1 
Line 1 
 /*      $Id$ */  /*      $Id$ */
 /*  /*
  * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>   * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
  * Copyright (c) 2010-2016 Ingo Schwarze <schwarze@openbsd.org>   * Copyright (c) 2010-2017 Ingo Schwarze <schwarze@openbsd.org>
  *   *
  * Permission to use, copy, modify, and distribute this software for any   * Permission to use, copy, modify, and distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above   * purpose with or without fee is hereby granted, provided that the above
Line 606  encode(struct termp *p, const char *word, size_t sz)
Line 606  encode(struct termp *p, const char *word, size_t sz)
                 if (ASCII_HYPH == word[i] ||                  if (ASCII_HYPH == word[i] ||
                     isgraph((unsigned char)word[i]))                      isgraph((unsigned char)word[i]))
                         encode1(p, word[i]);                          encode1(p, word[i]);
                 else                  else {
                         p->buf[p->col++] = word[i];                          p->buf[p->col++] = word[i];
   
                           /*
                            * Postpone the effect of \z while handling
                            * an overstrike sequence from ascii_uc2str().
                            */
   
                           if (word[i] == '\b' &&
                               (p->flags & TERMP_BACKBEFORE)) {
                                   p->flags &= ~TERMP_BACKBEFORE;
                                   p->flags |= TERMP_BACKAFTER;
                           }
                   }
         }          }
 }  }
   

Legend:
Removed from v.1.258  
changed lines
  Added in v.1.259

CVSweb