From 35239e977f53c25016b57729cada612aa53e11d4 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Sat, 30 Mar 2024 09:29:21 +0800 Subject: test: use matches(...) instead of ok(string.find(...)) (#28111) --- src/nvim/change.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/nvim/change.c b/src/nvim/change.c index 42884842b3..fce0de49bb 100644 --- a/src/nvim/change.c +++ b/src/nvim/change.c @@ -1838,8 +1838,8 @@ bool open_line(int dir, int flags, int second_line_indent, bool *did_do_comment) saved_line = NULL; if (did_append) { - // Always move extmarks - Here we move only the line where the - // cursor is, the later mark_adjust takes care of the lines after. + // Always move extmarks - Here we move only the line where the cursor is, + // the previous mark_adjust() took care of the lines after. int cols_added = mincol - 1 + less_cols_off - less_cols; extmark_splice(curbuf, (int)lnum - 1, mincol - 1 - cols_spliced, 0, less_cols_off, less_cols_off, -- cgit