0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

updated for version 7.0185

This commit is contained in:
Bram Moolenaar
2006-01-22 23:30:12 +00:00
parent 71fe80dddd
commit 33aec765bd
10 changed files with 93 additions and 57 deletions

View File

@@ -2974,8 +2974,11 @@ syn_add_end_off(result, regmatch, spp, idx, extra)
else
{
/* 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));
* is a matchgroup. Watch out for match with last NL in the buffer. */
if (result->lnum > syn_buf->b_ml.ml_line_count)
len = 0;
else
len = STRLEN(ml_get_buf(syn_buf, result->lnum, FALSE));
if (col > len)
result->col = len;
else