Mercurial > vim
diff src/popupwin.c @ 16833:6699c03347d2 v8.1.1418
patch 8.1.1418: win_execute() is not implemented yet
commit https://github.com/vim/vim/commit/868b7b6712ea4f2232eeeae18c5cbbbddf2ee84d
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed May 29 21:44:40 2019 +0200
patch 8.1.1418: win_execute() is not implemented yet
Problem: Win_execute() is not implemented yet.
Solution: Implement it.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 29 May 2019 21:45:05 +0200 |
parents | 5cebaecad422 |
children | 18593056d8f1 |
line wrap: on
line diff
--- a/src/popupwin.c +++ b/src/popupwin.c @@ -238,6 +238,7 @@ f_popup_create(typval_T *argvars, typval buf->b_p_ul = -1; // no undo buf->b_p_swf = FALSE; // no swap file buf->b_p_bl = FALSE; // unlisted buffer + buf->b_locked = TRUE; win_init_popup_win(wp, buf); @@ -376,6 +377,7 @@ f_popup_show(typval_T *argvars, typval_T static void popup_free(win_T *wp) { + wp->w_buffer->b_locked = FALSE; if (wp->w_winrow + wp->w_height >= cmdline_row) clear_cmdline = TRUE; win_free_popup(wp);