test: use matches(...) instead of ok(string.find(...)) (#28111)

This commit is contained in:
zeertzjq
2024-03-30 09:29:21 +08:00
committed by GitHub
parent 19d63563e1
commit 35239e977f
8 changed files with 20 additions and 24 deletions

View File

@@ -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,