version 1.89, 2013/02/15 15:12:25 |
version 1.90, 2013/02/17 10:30:26 |
|
|
struct buffer *bp2; |
struct buffer *bp2; |
struct mgwin *wp; |
struct mgwin *wp; |
int s; |
int s; |
struct undo_rec *rec, *next; |
struct undo_rec *rec; |
|
|
/* |
/* |
* Find some other buffer to display. Try the alternate buffer, |
* Find some other buffer to display. Try the alternate buffer, |
|
|
bp1->b_altb = (bp->b_altb == bp1) ? NULL : bp->b_altb; |
bp1->b_altb = (bp->b_altb == bp1) ? NULL : bp->b_altb; |
bp1 = bp1->b_bufp; |
bp1 = bp1->b_bufp; |
} |
} |
rec = TAILQ_FIRST(&bp->b_undo); |
|
|
|
while (rec != NULL) { |
while ((rec = TAILQ_FIRST(&bp->b_undo))) { |
next = TAILQ_NEXT(rec, next); |
TAILQ_REMOVE(&bp->b_undo, rec, next); |
free_undo_record(rec); |
free_undo_record(rec); |
rec = next; |
|
} |
} |
|
|
free(bp->b_bname); /* Release name block */ |
free(bp->b_bname); /* Release name block */ |