Mirror of the Vim source from https://github.com/vim/vim
Revision | ef6b11bee7d06a843474888d0bbd67d14dd2065d (tree) |
---|---|
Time | 2007-01-09 23:37:01 |
Author | vimboss |
Commiter | vimboss |
updated for version 7.0-181
@@ -6178,8 +6178,8 @@ | ||
6178 | 6178 | if (retval != FAIL) |
6179 | 6179 | { |
6180 | 6180 | curbuf = frombuf; |
6181 | - while (!bufempty()) | |
6182 | - if (ml_delete(curbuf->b_ml.ml_line_count, FALSE) == FAIL) | |
6181 | + for (lnum = curbuf->b_ml.ml_line_count; lnum > 0; --lnum) | |
6182 | + if (ml_delete(lnum, FALSE) == FAIL) | |
6183 | 6183 | { |
6184 | 6184 | /* Oops! We could try putting back the saved lines, but that |
6185 | 6185 | * might fail again... */ |
@@ -667,6 +667,8 @@ | ||
667 | 667 | static int included_patches[] = |
668 | 668 | { /* Add new patch number below this line */ |
669 | 669 | /**/ |
670 | + 181, | |
671 | +/**/ | |
670 | 672 | 180, |
671 | 673 | /**/ |
672 | 674 | 179, |