0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

updated for version 7.0180

This commit is contained in:
Bram Moolenaar
2006-01-13 22:35:40 +00:00
parent 4770d09abd
commit a40ceaf88a
28 changed files with 425 additions and 82 deletions

View File

@@ -2956,6 +2956,7 @@ syn_add_end_off(result, regmatch, spp, idx, extra)
int extra; /* extra chars for offset to start */
{
int col;
int len;
if (spp->sp_off_flags & (1 << idx))
{
@@ -2971,7 +2972,15 @@ syn_add_end_off(result, regmatch, spp, idx, extra)
if (col < 0)
result->col = 0;
else
result->col = col;
{
/* Don't go past the end of the line. Matters for "rs=e+2" when there
* is a matchgroup. */
len = STRLEN(ml_get_buf(syn_buf, result->lnum, FALSE));
if (col > len)
result->col = len;
else
result->col = col;
}
}
/*