# HG changeset patch # User vimboss # Date 1254925230 0 # Node ID 7bcd81b96e2abb28ffb000145c917bd05e88e5c5 # Parent 2e915ea7110f0dc0507a733e4330ec6cc91e53ff updated for version 7.2-267 diff --git a/src/charset.c b/src/charset.c --- 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 */ diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -677,6 +677,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 267, +/**/ 266, /**/ 265,