aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/misc1.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/misc1.c')
-rw-r--r--src/nvim/misc1.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/nvim/misc1.c b/src/nvim/misc1.c
index a8cfc2d700..64a4b8b0b4 100644
--- a/src/nvim/misc1.c
+++ b/src/nvim/misc1.c
@@ -848,10 +848,11 @@ open_line (
/* Move marks after the line break to the new line. */
if (flags & OPENLINE_MARKFIX)
mark_col_adjust(curwin->w_cursor.lnum,
- curwin->w_cursor.col + less_cols_off,
- 1L, (long)-less_cols);
- } else
+ curwin->w_cursor.col + less_cols_off,
+ 1L, (long)-less_cols, 0);
+ } else {
changed_bytes(curwin->w_cursor.lnum, curwin->w_cursor.col);
+ }
}
/*