mirror of
https://github.com/vim/vim.git
synced 2025-09-28 04:24:06 -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;
|
||||
}
|
||||
|
||||
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