diff options
author | Shougo <Shougo.Matsu@gmail.com> | 2017-01-02 00:07:49 +0900 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2017-01-01 16:07:49 +0100 |
commit | 3d3545bbc17627a46ee85ce8e85bdd75523c3982 (patch) | |
tree | b85ec276ec33586c45c95b818c04449a9c69b5f8 /src | |
parent | f6c4e0961d4906113c5a28c9679244ea057a1e16 (diff) | |
download | rneovim-3d3545bbc17627a46ee85ce8e85bdd75523c3982.tar.gz rneovim-3d3545bbc17627a46ee85ce8e85bdd75523c3982.tar.bz2 rneovim-3d3545bbc17627a46ee85ce8e85bdd75523c3982.zip |
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.
https://github.com/vim/vim/commit/908be438794619f10ef7fa25e24e5893b2ae0189
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/screen.c | 5 | ||||
-rw-r--r-- | src/nvim/version.c | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/nvim/screen.c b/src/nvim/screen.c index 50517d2829..bf6e316c06 100644 --- a/src/nvim/screen.c +++ b/src/nvim/screen.c @@ -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; diff --git a/src/nvim/version.c b/src/nvim/version.c index be17b6775a..cfe71c5015 100644 --- a/src/nvim/version.c +++ b/src/nvim/version.c @@ -606,6 +606,7 @@ static int included_patches[] = { 1837, 1836, 1835, + 1834, 1833, 1832, 1831, |