mirror of
https://github.com/vim/vim.git
synced 2025-09-29 04:34:16 -04:00
patch 7.4.699
Problem: E315 when trying to delete a fold. (Yutao Yuan) Solution: Make sure the fold doesn't go beyond the last buffer line. (Christian Brabandt)
This commit is contained in:
@@ -234,6 +234,8 @@ hasFoldingWin(win, lnum, firstp, lastp, cache, infop)
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (last > win->w_buffer->b_ml.ml_line_count)
|
||||||
|
last = win->w_buffer->b_ml.ml_line_count;
|
||||||
if (lastp != NULL)
|
if (lastp != NULL)
|
||||||
*lastp = last;
|
*lastp = last;
|
||||||
if (firstp != NULL)
|
if (firstp != NULL)
|
||||||
|
@@ -741,6 +741,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
699,
|
||||||
/**/
|
/**/
|
||||||
698,
|
698,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user