Mercurial > vim
comparison src/fileio.c @ 1055:ef6b11bee7d0 v7.0.181
updated for version 7.0-181
author | vimboss |
---|---|
date | Tue, 09 Jan 2007 14:37:01 +0000 |
parents | 992d5c69d5e9 |
children | b4d11ddb7303 |
comparison
equal
deleted
inserted
replaced
1054:99ccc8932b6c | 1055:ef6b11bee7d0 |
---|---|
6176 | 6176 |
6177 /* Delete all the lines in "frombuf". */ | 6177 /* Delete all the lines in "frombuf". */ |
6178 if (retval != FAIL) | 6178 if (retval != FAIL) |
6179 { | 6179 { |
6180 curbuf = frombuf; | 6180 curbuf = frombuf; |
6181 while (!bufempty()) | 6181 for (lnum = curbuf->b_ml.ml_line_count; lnum > 0; --lnum) |
6182 if (ml_delete(curbuf->b_ml.ml_line_count, FALSE) == FAIL) | 6182 if (ml_delete(lnum, FALSE) == FAIL) |
6183 { | 6183 { |
6184 /* Oops! We could try putting back the saved lines, but that | 6184 /* Oops! We could try putting back the saved lines, but that |
6185 * might fail again... */ | 6185 * might fail again... */ |
6186 retval = FAIL; | 6186 retval = FAIL; |
6187 break; | 6187 break; |