fix(api): don't set coladd of mark (#26648)

This commit is contained in:
zeertzjq
2023-12-19 08:01:05 +08:00
committed by GitHub
parent 80f75d063d
commit 1cf51a07a6
2 changed files with 5 additions and 3 deletions

View File

@@ -1044,7 +1044,7 @@ bool set_mark(buf_T *buf, String name, Integer line, Integer col, Error *err)
}
}
assert(INT32_MIN <= line && line <= INT32_MAX);
pos_T pos = { (linenr_T)line, (int)col, (int)col };
pos_T pos = { (linenr_T)line, (int)col, 0 };
res = setmark_pos(*name.data, &pos, buf->handle, NULL);
if (!res) {
if (deleting) {