0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

updated for version 7.0-181

This commit is contained in:
Bram Moolenaar
2007-01-09 14:37:01 +00:00
parent d675e2c513
commit 9460b9d215
2 changed files with 4 additions and 2 deletions

View File

@@ -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... */