comparison src/screen.c @ 9100:ddccff0480d2 v7.4.1834

commit https://github.com/vim/vim/commit/908be438794619f10ef7fa25e24e5893b2ae0189 Author: Bram Moolenaar <Bram@vim.org> Date: Tue May 24 10:51:30 2016 +0200 patch 7.4.1834 Problem: Possible crash when conceal is active. Solution: Check for the screen to be valid when redrawing a line.
author Christian Brabandt <cb@256bit.org>
date Tue, 24 May 2016 11:00:09 +0200
parents 773d627cac0b
children bb86514cad15
comparison
equal deleted inserted replaced
9099:0ff9532b705e 9100:ddccff0480d2
799 update_single_line(win_T *wp, linenr_T lnum) 799 update_single_line(win_T *wp, linenr_T lnum)
800 { 800 {
801 int row; 801 int row;
802 int j; 802 int j;
803 803
804 /* Don't do anything if the screen structures are (not yet) valid. */
805 if (!screen_valid(TRUE))
806 return;
807
804 if (lnum >= wp->w_topline && lnum < wp->w_botline 808 if (lnum >= wp->w_topline && lnum < wp->w_botline
805 && foldedCount(wp, lnum, &win_foldinfo) == 0) 809 && foldedCount(wp, lnum, &win_foldinfo) == 0)
806 { 810 {
807 # ifdef FEAT_GUI 811 # ifdef FEAT_GUI
808 /* Remove the cursor before starting to do anything, because scrolling 812 /* Remove the cursor before starting to do anything, because scrolling