commit | 908be438794619f10ef7fa25e24e5893b2ae0189 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Tue May 24 10:51:30 2016 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Tue May 24 10:51:30 2016 +0200 |
tree | 24528529e9fe0191ffc5d9988ae32ab9b610f456 | |
parent | 2ff8b64679242e73248774a388d54931c9ce49bd [diff] [blame] |
patch 7.4.1834 Problem: Possible crash when conceal is active. Solution: Check for the screen to be valid when redrawing a line.
diff --git a/src/screen.c b/src/screen.c index a72bffa..2e425cb 100644 --- a/src/screen.c +++ b/src/screen.c
@@ -801,6 +801,10 @@ 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) {