summaryrefslogtreecommitdiffstats
path: root/src/map.c
diff options
context:
space:
mode:
authorErnie Rael <errael@raelity.com>2022-05-10 17:50:39 +0100
committerBram Moolenaar <Bram@vim.org>2022-05-10 17:50:39 +0100
commitd8f5f766219273a8579947cc80b92580b6988a4b (patch)
tree5325cef40d2b8f102fb71625056681e0d88e8515 /src/map.c
parent0f267621c04883de010a6379217a5f182cc03dda (diff)
patch 8.2.4932: not easy to filter the output of maplist()v8.2.4932
Problem: Not easy to filter the output of maplist(). Solution: Add mode_bits to the dictionary. (Ernie Rael, closes #10356)
Diffstat (limited to 'src/map.c')
-rw-r--r--src/map.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map.c b/src/map.c
index 48196f2bd4..a93cb2edb3 100644
--- a/src/map.c
+++ b/src/map.c
@@ -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);
}