vim-patch:7.4.1834 (#5854)

Problem:    Possible crash when conceal is active.
Solution:   Check for the screen to be valid when redrawing a line.

908be43879
This commit is contained in:
Shougo 2017-01-02 00:07:49 +09:00 committed by Justin M. Keyes
parent f6c4e0961d
commit 3d3545bbc1
2 changed files with 6 additions and 0 deletions

View File

@ -486,6 +486,11 @@ void update_single_line(win_T *wp, linenr_T lnum)
int row;
int j;
// Don't do anything if the screen structures are (not yet) valid.
if (!screen_valid(true)) {
return;
}
if (lnum >= wp->w_topline && lnum < wp->w_botline
&& foldedCount(wp, lnum, &win_foldinfo) == 0) {
row = 0;

View File

@ -606,6 +606,7 @@ static int included_patches[] = {
1837,
1836,
1835,
1834,
1833,
1832,
1831,