mirror of
https://github.com/vim/vim.git
synced 2025-07-24 10:45:12 -04:00
patch 8.1.1810: popup_getoptions() is missing an entry for "mapping"
Problem: Popup_getoptions() is missing an entry for "mapping". Solution: Add the entry.
This commit is contained in:
parent
a74e4946de
commit
b8350abef0
@ -2319,6 +2319,7 @@ f_popup_getoptions(typval_T *argvars, typval_T *rettv)
|
||||
dict_add_string(dict, "title", wp->w_popup_title);
|
||||
dict_add_number(dict, "wrap", wp->w_p_wrap);
|
||||
dict_add_number(dict, "drag", (wp->w_popup_flags & POPF_DRAG) != 0);
|
||||
dict_add_number(dict, "mapping", (wp->w_popup_flags & POPF_MAPPING) != 0);
|
||||
dict_add_number(dict, "resize", (wp->w_popup_flags & POPF_RESIZE) != 0);
|
||||
dict_add_number(dict, "cursorline",
|
||||
(wp->w_popup_flags & POPF_CURSORLINE) != 0);
|
||||
|
@ -946,6 +946,7 @@ func Test_popup_getoptions()
|
||||
call assert_equal(21, res.maxheight)
|
||||
call assert_equal(100, res.zindex)
|
||||
call assert_equal(1, res.fixed)
|
||||
call assert_equal(1, res.mapping)
|
||||
if has('timers')
|
||||
call assert_equal(5000, res.time)
|
||||
endif
|
||||
|
@ -773,6 +773,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1810,
|
||||
/**/
|
||||
1809,
|
||||
/**/
|
||||
|
Loading…
x
Reference in New Issue
Block a user