aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-12-19 08:01:05 +0800
committerGitHub <noreply@github.com>2023-12-19 08:01:05 +0800
commit1cf51a07a6bfb827efc36911cd018da3a3cb863b (patch)
tree0f7305da805ae69622bcfd5f530b7a6ea5cac812 /src
parent80f75d063d2fd2fabf0584a0167920af647f6e9e (diff)
downloadrneovim-1cf51a07a6bfb827efc36911cd018da3a3cb863b.tar.gz
rneovim-1cf51a07a6bfb827efc36911cd018da3a3cb863b.tar.bz2
rneovim-1cf51a07a6bfb827efc36911cd018da3a3cb863b.zip
fix(api): don't set coladd of mark (#26648)
Diffstat (limited to 'src')
-rw-r--r--src/nvim/api/private/helpers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/api/private/helpers.c b/src/nvim/api/private/helpers.c
index 70e63d0ad5..23ec815346 100644
--- a/src/nvim/api/private/helpers.c
+++ b/src/nvim/api/private/helpers.c
@@ -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) {