Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
413:3d8ab81abe04 | 414:8ab9c77240d4 |
---|---|
654 if (curbuf->b_ml.ml_line_count == 1) | 654 if (curbuf->b_ml.ml_line_count == 1) |
655 empty_buffer = TRUE; | 655 empty_buffer = TRUE; |
656 ml_delete(lnum, FALSE); | 656 ml_delete(lnum, FALSE); |
657 } | 657 } |
658 } | 658 } |
659 else | |
660 newarray = NULL; | |
659 | 661 |
660 /* insert the lines in u_array between top and bot */ | 662 /* insert the lines in u_array between top and bot */ |
661 if (newsize) | 663 if (newsize) |
662 { | 664 { |
663 for (lnum = top, i = 0; i < newsize; ++i, ++lnum) | 665 for (lnum = top, i = 0; i < newsize; ++i, ++lnum) |
921 static void | 923 static void |
922 u_freeentry(uep, n) | 924 u_freeentry(uep, n) |
923 u_entry_T *uep; | 925 u_entry_T *uep; |
924 long n; | 926 long n; |
925 { | 927 { |
926 while (n) | 928 while (n > 0) |
927 U_FREE_LINE(uep->ue_array[--n]); | 929 U_FREE_LINE(uep->ue_array[--n]); |
928 U_FREE_LINE((char_u *)uep->ue_array); | 930 U_FREE_LINE((char_u *)uep->ue_array); |
929 U_FREE_LINE((char_u *)uep); | 931 U_FREE_LINE((char_u *)uep); |
930 } | 932 } |
931 | 933 |