mirror of
https://github.com/neovim/neovim.git
synced 2024-12-21 03:35:02 -07:00
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:
parent
f6c4e0961d
commit
3d3545bbc1
@ -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;
|
||||
|
@ -606,6 +606,7 @@ static int included_patches[] = {
|
||||
1837,
|
||||
1836,
|
||||
1835,
|
||||
1834,
|
||||
1833,
|
||||
1832,
|
||||
1831,
|
||||
|
Loading…
Reference in New Issue
Block a user