Mercurial > vim
diff src/undo.c @ 414:8ab9c77240d4
updated for version 7.0108
author | vimboss |
---|---|
date | Tue, 12 Jul 2005 22:46:17 +0000 |
parents | 0f6afaf1b8d1 |
children | 66080ac5dab7 |
line wrap: on
line diff
--- a/src/undo.c +++ b/src/undo.c @@ -656,6 +656,8 @@ u_undoredo() ml_delete(lnum, FALSE); } } + else + newarray = NULL; /* insert the lines in u_array between top and bot */ if (newsize) @@ -923,7 +925,7 @@ u_freeentry(uep, n) u_entry_T *uep; long n; { - while (n) + while (n > 0) U_FREE_LINE(uep->ue_array[--n]); U_FREE_LINE((char_u *)uep->ue_array); U_FREE_LINE((char_u *)uep);