commit | 7866b87958cf0c2f3312f2c3d7fb8d6eed28b512 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Mon Jul 01 22:21:01 2019 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Mon Jul 01 22:21:01 2019 +0200 |
tree | b952f2359356a2c434aa747d67f1362a7a2e6295 | |
parent | f8a071265535b8cc43e50a81f4d5049883ca50e4 [diff] [blame] |
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.
diff --git a/src/popupwin.c b/src/popupwin.c index 3af35b6..d988cba 100644 --- a/src/popupwin.c +++ b/src/popupwin.c
@@ -1056,8 +1056,7 @@ { // use existing buffer new_buffer = FALSE; - wp->w_buffer = buf; - ++buf->b_nwindows; + win_init_popup_win(wp, buf); buffer_ensure_loaded(buf); } else