comparison src/popupwin.c @ 17231:e9ebf3f27af6 v8.1.1615

patch 8.1.1615: crash when passing buffer number to popup_create() commit https://github.com/vim/vim/commit/7866b87958cf0c2f3312f2c3d7fb8d6eed28b512 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jul 1 22:21:01 2019 +0200 patch 8.1.1615: crash when passing buffer number to popup_create() Problem: Crash when passing buffer number to popup_create(). (Yasuhiro Matsumoto) Solution: Initialze the window properly.
author Bram Moolenaar <Bram@vim.org>
date Mon, 01 Jul 2019 22:30:05 +0200
parents 09fa437d33d8
children 2a97167854fc
comparison
equal deleted inserted replaced
17230:eaf422739e26 17231:e9ebf3f27af6
1054 1054
1055 if (buf != NULL) 1055 if (buf != NULL)
1056 { 1056 {
1057 // use existing buffer 1057 // use existing buffer
1058 new_buffer = FALSE; 1058 new_buffer = FALSE;
1059 wp->w_buffer = buf; 1059 win_init_popup_win(wp, buf);
1060 ++buf->b_nwindows;
1061 buffer_ensure_loaded(buf); 1060 buffer_ensure_loaded(buf);
1062 } 1061 }
1063 else 1062 else
1064 { 1063 {
1065 // create a new buffer associated with the popup 1064 // create a new buffer associated with the popup