vim-patch:7.4.699 #2508

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)

https://code.google.com/p/vim/source/detail?r=v7-4-699
This commit is contained in:
grtlr
2015-04-25 19:00:25 +02:00
committed by Michael Reed
parent b464f25109
commit dd8531dbb5
2 changed files with 4 additions and 1 deletions

View File

@@ -241,6 +241,9 @@ hasFoldingWin (
return FALSE;
}
if (last > win->w_buffer->b_ml.ml_line_count) {
last = win->w_buffer->b_ml.ml_line_count;
}
if (lastp != NULL)
*lastp = last;
if (firstp != NULL)

View File

@@ -70,7 +70,7 @@ static int included_patches[] = {
702,
//701,
//700,
//699,
699,
//698,
//697,
//696,