summaryrefslogtreecommitdiffstats
path: root/src/charset.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:05:51 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:05:51 +0000
commit3b8b0072dafee1c363713688a821982167185fa0 (patch)
tree7ae89cb789d77aecb88f4785011115d820f9bf49 /src/charset.c
parentAdding upstream version 2:9.1.0698. (diff)
downloadvim-upstream.tar.xz
vim-upstream.zip
Adding upstream version 2:9.1.0709.upstream/2%9.1.0709upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/charset.c')
-rw-r--r--src/charset.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/charset.c b/src/charset.c
index 19b0895..399f258 100644
--- a/src/charset.c
+++ b/src/charset.c
@@ -1678,6 +1678,9 @@ getvcol(
}
clear_chartabsize_arg(&cts);
+ if (*ptr == NUL && pos->col < MAXCOL && pos->col > ptr - line)
+ pos->col = ptr - line;
+
if (start != NULL)
*start = vcol + head;
if (end != NULL)