diff options
author | lePerdu <zdpeltzer@gmail.com> | 2017-10-18 18:27:31 -0400 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2018-01-18 01:37:51 +0100 |
commit | bc17ad31dccb446fc24e0f6bb3cb2149ce951ae5 (patch) | |
tree | b1dcb4b23fe3d7addd300abc532ebe215b546a5a /test/functional/ex_cmds | |
parent | 8fc437ef43dbaccf873c9af448495387410e465c (diff) | |
download | rneovim-bc17ad31dccb446fc24e0f6bb3cb2149ce951ae5.tar.gz rneovim-bc17ad31dccb446fc24e0f6bb3cb2149ce951ae5.tar.bz2 rneovim-bc17ad31dccb446fc24e0f6bb3cb2149ce951ae5.zip |
os/input.c: parse keycodes in non-string context #7411
cb02137dfac7 had two mistakes, of the same nature: trans_special() must
be invoked with in_string=false unless the parsing context is a VimL
string. replace_termcodes() and input_enqueue() are low-level
mechanisms where VimL strings do not exist.
keymap.c: adjust double-quote case to satisfy keymap_spec.lua
closes #7410
Diffstat (limited to 'test/functional/ex_cmds')
-rw-r--r-- | test/functional/ex_cmds/map_spec.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/functional/ex_cmds/map_spec.lua b/test/functional/ex_cmds/map_spec.lua index b46f83405e..84d5bc2335 100644 --- a/test/functional/ex_cmds/map_spec.lua +++ b/test/functional/ex_cmds/map_spec.lua @@ -5,6 +5,7 @@ local feed = helpers.feed local meths = helpers.meths local clear = helpers.clear local command = helpers.command +local expect = helpers.expect describe(':*map', function() before_each(clear) @@ -18,4 +19,10 @@ describe(':*map', function() feed('\24\25<C-x><C-y>') eq(4, meths.get_var('counter')) end) + + it(':imap <M-">', function() + command('imap <M-"> foo') + feed('i-<M-">-') + expect('-foo-') + end) end) |