home *** CD-ROM | disk | FTP | other *** search
- *** mfold.c Fri Feb 22 18:40:32 1991
- --- ../mfold.c Fri Feb 22 18:28:56 1991
- ***************
- *** 250,259 ****
- --- 250,261 ----
- if ( in != '\n' ) {
- if ( cnt_nwl > 1 && got_newlines ) {
- while ( --cnt_nwl ) {
- + set_putting_text(0);
- putcolu('\n');
- putcolu(' ');
- }
- putcolu('\n');
- + set_putting_text(1);
- DO_ALL1
- }
- cnt_nwl = 0;
- ***************
- *** 452,459 ****
- exit(t);
- }
-
- ! int col = 0;
-
- putcolu(c)
- char c;
- {
- --- 454,465 ----
- exit(t);
- }
-
- ! int col = 0, putting_text = 1;
-
- + set_putting_text(n) {
- + putting_text = n;
- + }
- +
- putcolu(c)
- char c;
- {
- ***************
- *** 460,472 ****
- int i;
-
- if ( c == '\n' || col == colu_chars ) {
- ! if ( c == '\n' && str_len(cur_page[lin]) == ins_len ) {
- for ( i = 0; i < ins_len; i++ ) {
- cur_page[lin][i] = '\0';
- }
- col = 0;
- }
- - if ( col ) advance_line();
- return;
- }
- cur_page[lin][col++] = c;
- --- 466,479 ----
- int i;
-
- if ( c == '\n' || col == colu_chars ) {
- ! if ( c == '\n' && putting_text && str_len(cur_page[lin]) == ins_len ) {
- for ( i = 0; i < ins_len; i++ ) {
- cur_page[lin][i] = '\0';
- }
- col = 0;
- + } else {
- + advance_line();
- }
- return;
- }
- cur_page[lin][col++] = c;
-