version 1.5, 2002/02/21 04:21:05 |
version 1.6, 2002/02/21 17:36:12 |
|
|
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 |
*/ |
*/ |
|
|
*/ |
*/ |
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!"); |
|
|
|
|
LIST_REMOVE(rec, next); |
LIST_REMOVE(rec, next); |
if (rec->type == BOUNDARY) { |
if (rec->type == BOUNDARY) { |
n++; /* XXX */ |
|
continue; |
continue; |
} |
} |
|
|
|
|
} |
} |
|
|
free_undo_record(rec); |
free_undo_record(rec); |
|
|
|
n--; |
} |
} |
undoaction--; |
undoaction--; |
|
|