Skip to content

Commit 50e5376

Browse files
committed
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)
1 parent 46fceaa commit 50e5376

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

src/popupmnu.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,9 @@ pum_set_selected(int n, int repeat)
582582

583583
if (curwin->w_p_pvw)
584584
{
585-
if (curbuf->b_fname == NULL
585+
if (!resized
586+
&& curbuf->b_nwindows == 1
587+
&& curbuf->b_fname == NULL
586588
&& curbuf->b_p_bt[0] == 'n' && curbuf->b_p_bt[2] == 'f'
587589
&& curbuf->b_p_bh[0] == 'w')
588590
{

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,8 @@ static char *(features[]) =
764764

765765
static int included_patches[] =
766766
{ /* Add new patch number below this line */
767+
/**/
768+
47,
767769
/**/
768770
46,
769771
/**/

0 commit comments

Comments
 (0)