]> granicus.if.org Git - vim/commitdiff
patch 8.0.0047 v8.0.0047
authorBram Moolenaar <Bram@vim.org>
Thu, 27 Oct 2016 12:49:15 +0000 (14:49 +0200)
committerBram Moolenaar <Bram@vim.org>
Thu, 27 Oct 2016 12:49:15 +0000 (14:49 +0200)
Problem:    Crash when using the preview window from an unnamed buffer.
            (lifepillar)
Solution:   Do not clear the wrong buffer. (closes #1200)

src/popupmnu.c
src/version.c

index d9d1feefad2d0ea1c120565fe539f88ccccd2d25..b479b00457a9d5b63cd85e2daa66725596042969 100644 (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')
                {
index d25b91fde7988781c68aeaaef302c9dabeda3925..001c74098a02cd20504d00e2cfabb50d7d68f33f 100644 (file)
@@ -764,6 +764,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    47,
 /**/
     46,
 /**/