comparison src/popupmnu.c @ 10302:210af8588e8a v8.0.0047

commit https://github.com/vim/vim/commit/50e5376926dc2ec4a26a7a16f8f0f3213c4afdf0 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Oct 27 14:49:15 2016 +0200 patch 8.0.0047 Problem: Crash when using the preview window from an unnamed buffer. (lifepillar) Solution: Do not clear the wrong buffer. (closes https://github.com/vim/vim/issues/1200)
author Christian Brabandt <cb@256bit.org>
date Thu, 27 Oct 2016 15:00:04 +0200
parents 4aead6a9b7a9
children 7d10572eaba4
comparison
equal deleted inserted replaced
10301:07d2b5a3b7cc 10302:210af8588e8a
580 --RedrawingDisabled; 580 --RedrawingDisabled;
581 g_do_tagpreview = 0; 581 g_do_tagpreview = 0;
582 582
583 if (curwin->w_p_pvw) 583 if (curwin->w_p_pvw)
584 { 584 {
585 if (curbuf->b_fname == NULL 585 if (!resized
586 && curbuf->b_nwindows == 1
587 && curbuf->b_fname == NULL
586 && curbuf->b_p_bt[0] == 'n' && curbuf->b_p_bt[2] == 'f' 588 && curbuf->b_p_bt[0] == 'n' && curbuf->b_p_bt[2] == 'f'
587 && curbuf->b_p_bh[0] == 'w') 589 && curbuf->b_p_bh[0] == 'w')
588 { 590 {
589 /* Already a "wipeout" buffer, make it empty. */ 591 /* Already a "wipeout" buffer, make it empty. */
590 while (!bufempty()) 592 while (!bufempty())