diff options
author | Bram Moolenaar <Bram@vim.org> | 2009-07-09 18:06:49 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2009-07-09 18:06:49 +0000 |
commit | cdcaa5892992d556c7469a36b719aefc220f44a6 (patch) | |
tree | 7625616f59ead9e862f07c8f005d3fa3392b1ab9 /src/ex_cmds.c | |
parent | 13df0fea4b79d5b3184df8c39b077ae0f6163375 (diff) |
updated for version 7.2-226v7.2.226
Diffstat (limited to 'src/ex_cmds.c')
-rw-r--r-- | src/ex_cmds.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ex_cmds.c b/src/ex_cmds.c index fabb2e76a2..68627a578b 100644 --- a/src/ex_cmds.c +++ b/src/ex_cmds.c @@ -4013,6 +4013,9 @@ ex_change(eap) break; ml_delete(eap->line1, FALSE); } + + /* make sure the cursor is not beyond the end of the file now */ + check_cursor_lnum(); deleted_lines_mark(eap->line1, (long)(eap->line2 - lnum)); /* ":append" on the line above the deleted lines. */ |