Permalink
Browse files

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)
  • Loading branch information...
1 parent 46fceaa commit 50e5376926dc2ec4a26a7a16f8f0f3213c4afdf0 @brammool brammool committed Oct 27, 2016
Showing with 5 additions and 1 deletion.
  1. +3 −1 src/popupmnu.c
  2. +2 −0 src/version.c
View
@@ -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
@@ -765,6 +765,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 47,
+/**/
46,
/**/
45,

0 comments on commit 50e5376

Please sign in to comment.