mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 14:08:32 +00:00
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:
@@ -241,6 +241,9 @@ hasFoldingWin (
|
|||||||
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)
|
||||||
|
@@ -70,7 +70,7 @@ static int included_patches[] = {
|
|||||||
702,
|
702,
|
||||||
//701,
|
//701,
|
||||||
//700,
|
//700,
|
||||||
//699,
|
699,
|
||||||
//698,
|
//698,
|
||||||
//697,
|
//697,
|
||||||
//696,
|
//696,
|
||||||
|
Reference in New Issue
Block a user