Mercurial > vim
diff 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 |
line wrap: on
line diff
--- a/src/fileio.c +++ b/src/fileio.c @@ -6178,8 +6178,8 @@ move_lines(frombuf, tobuf) if (retval != FAIL) { curbuf = frombuf; - while (!bufempty()) - if (ml_delete(curbuf->b_ml.ml_line_count, FALSE) == FAIL) + for (lnum = curbuf->b_ml.ml_line_count; lnum > 0; --lnum) + if (ml_delete(lnum, FALSE) == FAIL) { /* Oops! We could try putting back the saved lines, but that * might fail again... */