diff options
Diffstat (limited to 'src/charset.c')
-rw-r--r-- | src/charset.c | 3 |
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) |