summaryrefslogtreecommitdiff
path: root/src/charset.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2009-10-07 14:20:30 +0000
committerBram Moolenaar <Bram@vim.org>2009-10-07 14:20:30 +0000
commit8701cd6a226fa0b79de7f32fb700e7bf3eb05dbd (patch)
tree91e94e1acf4d0f4833e41648827f4fd0202d9cd5 /src/charset.c
parentda9591ecfd31fab84e9fbca393b198e4de2de880 (diff)
downloadvim-git-8701cd6a226fa0b79de7f32fb700e7bf3eb05dbd.tar.gz
updated for version 7.2-267v7.2.267
Diffstat (limited to 'src/charset.c')
-rw-r--r--src/charset.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/charset.c b/src/charset.c
index 0535d4cfc..cc02563b2 100644
--- a/src/charset.c
+++ b/src/charset.c
@@ -1218,6 +1218,8 @@ in_win_border(wp, vcol)
if ((int)vcol == width1 - 1)
return TRUE;
width2 = width1 + win_col_off2(wp);
+ if (width2 <= 0)
+ return FALSE;
return ((vcol - width1) % width2 == width2 - 1);
}
#endif /* FEAT_MBYTE */