Mercurial > vim
comparison src/map.c @ 28817:1ad71fcbf546 v8.2.4932
patch 8.2.4932: not easy to filter the output of maplist()
Commit: https://github.com/vim/vim/commit/d8f5f766219273a8579947cc80b92580b6988a4b
Author: Ernie Rael <errael@raelity.com>
Date: Tue May 10 17:50:39 2022 +0100
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 https://github.com/vim/vim/issues/10356)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 10 May 2022 19:00:04 +0200 |
parents | d770568e6c98 |
children | 45c182c4f7e9 |
comparison
equal
deleted
inserted
replaced
28816:708dfad50c43 | 28817:1ad71fcbf546 |
---|---|
2301 dict_add_number(dict, "lnum", (long)mp->m_script_ctx.sc_lnum); | 2301 dict_add_number(dict, "lnum", (long)mp->m_script_ctx.sc_lnum); |
2302 dict_add_number(dict, "buffer", (long)buffer_local); | 2302 dict_add_number(dict, "buffer", (long)buffer_local); |
2303 dict_add_number(dict, "nowait", mp->m_nowait ? 1L : 0L); | 2303 dict_add_number(dict, "nowait", mp->m_nowait ? 1L : 0L); |
2304 dict_add_string(dict, "mode", mapmode); | 2304 dict_add_string(dict, "mode", mapmode); |
2305 dict_add_number(dict, "abbr", abbr ? 1L : 0L); | 2305 dict_add_number(dict, "abbr", abbr ? 1L : 0L); |
2306 dict_add_number(dict, "mode_bits", mp->m_mode); | |
2306 | 2307 |
2307 vim_free(mapmode); | 2308 vim_free(mapmode); |
2308 } | 2309 } |
2309 | 2310 |
2310 static void | 2311 static void |