comparison src/window.c @ 10835:c9da7f9137af v8.0.0307

patch 8.0.0307: asan detects a memory error when EXITFREE is defined commit https://github.com/vim/vim/commit/955f198fc546cc30a34361932d3f454a61df0efa Author: Bram Moolenaar <Bram@vim.org> Date: Sun Feb 5 15:10:51 2017 +0100 patch 8.0.0307: asan detects a memory error when EXITFREE is defined Problem: Asan detects a memory error when EXITFREE is defined. (Dominique Pelle) Solution: In getvcol() check for ml_get_buf() returning an empty string. Also skip adjusting the scroll position. Set "exiting" in mch_exit() for all systems.
author Christian Brabandt <cb@256bit.org>
date Sun, 05 Feb 2017 15:15:04 +0100
parents dd397210a2d3
children cb71a5468aca
comparison
equal deleted inserted replaced
10834:63f95d6b8f60 10835:c9da7f9137af
5706 } 5706 }
5707 5707
5708 wp->w_height = height; 5708 wp->w_height = height;
5709 wp->w_skipcol = 0; 5709 wp->w_skipcol = 0;
5710 5710
5711 scroll_to_fraction(wp, prev_height); 5711 /* There is no point in adjusting the scroll position when exiting. Some
5712 * values might be invalid. */
5713 if (!exiting)
5714 scroll_to_fraction(wp, prev_height);
5712 } 5715 }
5713 5716
5714 void 5717 void
5715 scroll_to_fraction(win_T *wp, int prev_height) 5718 scroll_to_fraction(win_T *wp, int prev_height)
5716 { 5719 {