summaryrefslogtreecommitdiffstats
path: root/src/ex_cmds.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ex_cmds.c')
-rw-r--r--src/ex_cmds.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ex_cmds.c b/src/ex_cmds.c
index 8595e8be05..c57f332554 100644
--- a/src/ex_cmds.c
+++ b/src/ex_cmds.c
@@ -3359,7 +3359,11 @@ ex_append(exarg_T *eap)
did_undo = TRUE;
ml_append(lnum, theline, (colnr_T)0, FALSE);
- appended_lines_mark(lnum + (empty ? 1 : 0), 1L);
+ if (empty)
+ // there are no marks below the inserted lines
+ appended_lines(lnum, 1L);
+ else
+ appended_lines_mark(lnum, 1L);
vim_free(theline);
++lnum;