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

Diff for /src/usr.bin/vis/foldit.c between version 1.7 and 1.8

version 1.7, 2013/11/12 22:51:18 version 1.8, 2020/08/17 18:41:23
Line 38 
Line 38 
 foldit(char *chunk, int col, int max)  foldit(char *chunk, int col, int max)
 {  {
         char *cp;          char *cp;
           int first = (col != 0);
   
         /*          /*
          * Keep track of column position. Insert hidden newline           * Keep track of column position. Insert hidden newline
Line 61 
Line 62 
                         col++;                          col++;
                 }                  }
                 if (col > (max - 2)) {                  if (col > (max - 2)) {
                           if (!first)
                                   return (col);
                         printf("\\\n");                          printf("\\\n");
                         col = 0;                          col = 0;
                           first = 0;
                         goto again;                          goto again;
                 }                  }
                 cp++;                  cp++;

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8