comparison src/ex_cmds.c @ 1929:9230c45fdde6 v7.2.226

updated for version 7.2-226
author vimboss
date Thu, 09 Jul 2009 18:06:49 +0000
parents c8f343a465a2
children e038754d419a
comparison
equal deleted inserted replaced
1928:7caa503b63a9 1929:9230c45fdde6
4011 { 4011 {
4012 if (curbuf->b_ml.ml_flags & ML_EMPTY) /* nothing to delete */ 4012 if (curbuf->b_ml.ml_flags & ML_EMPTY) /* nothing to delete */
4013 break; 4013 break;
4014 ml_delete(eap->line1, FALSE); 4014 ml_delete(eap->line1, FALSE);
4015 } 4015 }
4016
4017 /* make sure the cursor is not beyond the end of the file now */
4018 check_cursor_lnum();
4016 deleted_lines_mark(eap->line1, (long)(eap->line2 - lnum)); 4019 deleted_lines_mark(eap->line1, (long)(eap->line2 - lnum));
4017 4020
4018 /* ":append" on the line above the deleted lines. */ 4021 /* ":append" on the line above the deleted lines. */
4019 eap->line2 = eap->line1; 4022 eap->line2 = eap->line1;
4020 ex_append(eap); 4023 ex_append(eap);