mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 22:48:34 +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;
|
||||
}
|
||||
|
||||
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)
|
||||
|
Reference in New Issue
Block a user