1
0
forked from aniani/vim

patch 8.2.4932: not easy to filter the output of maplist()

Problem:    Not easy to filter the output of maplist().
Solution:   Add mode_bits to the dictionary. (Ernie Rael, closes #10356)
This commit is contained in:
Ernie Rael
2022-05-10 17:50:39 +01:00
committed by Bram Moolenaar
parent 0f267621c0
commit d8f5f76621
5 changed files with 36 additions and 6 deletions

View File

@@ -2303,6 +2303,7 @@ mapblock2dict(
dict_add_number(dict, "nowait", mp->m_nowait ? 1L : 0L);
dict_add_string(dict, "mode", mapmode);
dict_add_number(dict, "abbr", abbr ? 1L : 0L);
dict_add_number(dict, "mode_bits", mp->m_mode);
vim_free(mapmode);
}