diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-05-03 15:13:57 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-05-03 15:13:57 +0200 |
commit | 2cb9f0253228478ec27265ff40f59c629874d695 (patch) | |
tree | 080e9fd1c1fbb7aa76c23ffe77872cef0b0f9d97 /src/getchar.c | |
parent | d788543ac6996536c532bceb7bbff51cd38d8699 (diff) |
patch 8.1.1251: no test for completion of mapping keysv8.1.1251
Problem: No test for completion of mapping keys.
Solution: Add a test. Also clean up the code.
Diffstat (limited to 'src/getchar.c')
-rw-r--r-- | src/getchar.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/getchar.c b/src/getchar.c index a1ffced14a..776e4e6841 100644 --- a/src/getchar.c +++ b/src/getchar.c @@ -4263,7 +4263,7 @@ set_context_in_map_cmd( } /* - * Find all mapping/abbreviation names that match regexp 'prog'. + * Find all mapping/abbreviation names that match regexp "regmatch"'. * For command line expansion of ":[un]map" and ":[un]abbrev" in all modes. * Return OK if matches found, FAIL otherwise. */ @@ -4343,7 +4343,7 @@ ExpandMappings( { if (mp->m_mode & expand_mapmodes) { - p = translate_mapping(mp->m_keys, TRUE); + p = translate_mapping(mp->m_keys); if (p != NULL && vim_regexec(regmatch, p, (colnr_T)0)) { if (round == 1) |