0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.0.0047

Problem:    Crash when using the preview window from an unnamed buffer.
            (lifepillar)
Solution:   Do not clear the wrong buffer. (closes #1200)
This commit is contained in:
Bram Moolenaar
2016-10-27 14:49:15 +02:00
parent 46fceaaa8d
commit 50e5376926
2 changed files with 5 additions and 1 deletions

View File

@@ -582,7 +582,9 @@ pum_set_selected(int n, int repeat)
if (curwin->w_p_pvw)
{
if (curbuf->b_fname == NULL
if (!resized
&& curbuf->b_nwindows == 1
&& curbuf->b_fname == NULL
&& curbuf->b_p_bt[0] == 'n' && curbuf->b_p_bt[2] == 'f'
&& curbuf->b_p_bh[0] == 'w')
{

View File

@@ -764,6 +764,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
47,
/**/
46,
/**/