Mercurial > vim
changeset 17626:2ae30dac20d6 v8.1.1810
patch 8.1.1810: popup_getoptions() is missing an entry for "mapping"
commit https://github.com/vim/vim/commit/b8350abef0abbdca99bf08e821a8ba0ade37abed
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Aug 4 17:59:49 2019 +0200
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 04 Aug 2019 18:00:05 +0200 |
parents | a70d4629a922 |
children | cb9dd669cb7d |
files | src/popupwin.c src/testdir/test_popupwin.vim src/version.c |
diffstat | 3 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/popupwin.c +++ b/src/popupwin.c @@ -2319,6 +2319,7 @@ f_popup_getoptions(typval_T *argvars, ty 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);
--- a/src/testdir/test_popupwin.vim +++ b/src/testdir/test_popupwin.vim @@ -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