]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 8.1.1810: popup_getoptions() is missing an entry for "mapping" v8.1.1810
authorBram Moolenaar <Bram@vim.org>
Sun, 4 Aug 2019 15:59:49 +0000 (17:59 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 4 Aug 2019 15:59:49 +0000 (17:59 +0200)
Problem:    Popup_getoptions() is missing an entry for "mapping".
Solution:   Add the entry.

src/popupwin.c
src/testdir/test_popupwin.vim
src/version.c

index f2297f52e26c4292f6c8b1445c71a0b3dadea851..ca75181426c3099d68dac38c854438f0ae9f28aa 100644 (file)
@@ -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);
index e5d16314bc4e3a8f6f63d878be1e919ad4cd69df..5a841e30ae580895a1518c5e95fc19e629fd31eb 100644 (file)
@@ -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
index 83c11abc68b860f7f6f5c4f846e363c77399a5da..690448299ab273791a723cdc7e8a2496e4dbb678 100644 (file)
@@ -773,6 +773,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1810,
 /**/
     1809,
 /**/