Skip to content

Commit

Permalink
patch 8.0.0047
Browse files Browse the repository at this point in the history
Problem:    Crash when using the preview window from an unnamed buffer.
            (lifepillar)
Solution:   Do not clear the wrong buffer. (closes #1200)
  • Loading branch information
brammool committed Oct 27, 2016
1 parent 46fceaa commit 50e5376
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/popupmnu.c
Expand Up @@ -582,7 +582,9 @@ pum_set_selected(int n, int repeat)


if (curwin->w_p_pvw) 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_bt[0] == 'n' && curbuf->b_p_bt[2] == 'f'
&& curbuf->b_p_bh[0] == 'w') && curbuf->b_p_bh[0] == 'w')
{ {
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -764,6 +764,8 @@ static char *(features[]) =


static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
47,
/**/ /**/
46, 46,
/**/ /**/
Expand Down

0 comments on commit 50e5376

Please sign in to comment.