home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 2 / 2834 / patch6.mfold.c next >
Encoding:
Text File  |  1991-02-23  |  1.3 KB  |  71 lines

  1. *** mfold.c    Fri Feb 22 18:40:32 1991
  2. --- ../mfold.c    Fri Feb 22 18:28:56 1991
  3. ***************
  4. *** 250,259 ****
  5. --- 250,261 ----
  6.           if ( in != '\n' ) {
  7.               if ( cnt_nwl > 1 && got_newlines ) {
  8.                   while ( --cnt_nwl ) {
  9. +                     set_putting_text(0);
  10.                       putcolu('\n');
  11.                       putcolu(' ');
  12.                   }
  13.                   putcolu('\n');
  14. +                 set_putting_text(1);
  15.                   DO_ALL1
  16.               }
  17.               cnt_nwl = 0;
  18. ***************
  19. *** 452,459 ****
  20.       exit(t);
  21.   }
  22.   
  23. ! int col = 0;
  24.   
  25.   putcolu(c)
  26.   char c;
  27.   {
  28. --- 454,465 ----
  29.       exit(t);
  30.   }
  31.   
  32. ! int col = 0, putting_text = 1;
  33.   
  34. + set_putting_text(n) {
  35. +     putting_text = n;
  36. + }
  37.   putcolu(c)
  38.   char c;
  39.   {
  40. ***************
  41. *** 460,472 ****
  42.       int i;
  43.   
  44.       if ( c == '\n' || col == colu_chars ) {
  45. !         if ( c == '\n' && str_len(cur_page[lin]) == ins_len ) {
  46.               for ( i = 0; i < ins_len; i++ ) {
  47.                   cur_page[lin][i] = '\0';
  48.               }
  49.               col = 0;
  50.           }
  51. -         if ( col ) advance_line();
  52.           return;
  53.       }
  54.       cur_page[lin][col++] = c;
  55. --- 466,479 ----
  56.       int i;
  57.   
  58.       if ( c == '\n' || col == colu_chars ) {
  59. !         if ( c == '\n' && putting_text && str_len(cur_page[lin]) == ins_len ) {
  60.               for ( i = 0; i < ins_len; i++ ) {
  61.                   cur_page[lin][i] = '\0';
  62.               }
  63.               col = 0;
  64. +         } else {
  65. +             advance_line();
  66.           }
  67.           return;
  68.       }
  69.       cur_page[lin][col++] = c;
  70.