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

Diff for /src/usr.bin/mg/undo.c between version 1.5 and 1.6

version 1.5, 2002/02/21 04:21:05 version 1.6, 2002/02/21 17:36:12
Line 254 
Line 254 
                         return TRUE;                          return TRUE;
                 }                  }
         }          }
   
         /*          /*
          * We couldn't reuse the last undo record, so prepare a new one           * We couldn't reuse the last undo record, so prepare a new one
          */           */
Line 407 
Line 408 
          */           */
         undoaction++;          undoaction++;
   
         while (n-- > 0) {          while (n > 0) {
                 rec = LIST_FIRST(&undo_list);                  rec = LIST_FIRST(&undo_list);
                 if (rec == NULL) {                  if (rec == NULL) {
                         ewprintf("Nothing to undo!");                          ewprintf("Nothing to undo!");
Line 418 
Line 419 
   
                 LIST_REMOVE(rec, next);                  LIST_REMOVE(rec, next);
                 if (rec->type == BOUNDARY) {                  if (rec->type == BOUNDARY) {
                         n++;    /* XXX */  
                         continue;                          continue;
                 }                  }
   
Line 448 
Line 448 
                 }                  }
   
                 free_undo_record(rec);                  free_undo_record(rec);
   
                   n--;
         }          }
         undoaction--;          undoaction--;
   

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6