diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-04-04 01:08:07 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2018-04-04 03:23:15 +0200 |
commit | 224ebc0078f29ac3189d7fbd9a59b386ae2ee303 (patch) | |
tree | d59733a73a7c7202b8badaba95d3f2bcc886ac77 /test/functional/terminal/tui_spec.lua | |
parent | 98e71123900fbdf26a16a43297a1f58118cde41b (diff) | |
download | rneovim-224ebc0078f29ac3189d7fbd9a59b386ae2ee303.tar.gz rneovim-224ebc0078f29ac3189d7fbd9a59b386ae2ee303.tar.bz2 rneovim-224ebc0078f29ac3189d7fbd9a59b386ae2ee303.zip |
insert-mode: interpret unmapped META as ESC
closes #2454
closes #8213
ref #7972
Diffstat (limited to 'test/functional/terminal/tui_spec.lua')
-rw-r--r-- | test/functional/terminal/tui_spec.lua | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/test/functional/terminal/tui_spec.lua b/test/functional/terminal/tui_spec.lua index 171745eb57..2f9abfd3f6 100644 --- a/test/functional/terminal/tui_spec.lua +++ b/test/functional/terminal/tui_spec.lua @@ -115,16 +115,12 @@ describe('tui', function() ]]) end) - it('does not mangle unmapped ALT-key chord', function() - -- Vim represents ALT/META by setting the "high bit" of the modified key; - -- we do _not_. #3982 - -- - -- Example: for input ALT+j: - -- * Vim (Nvim prior to #3982) sets high-bit, inserts "ê". - -- * Nvim (after #3982) inserts "j". - feed_data('i\027j') + it('interprets ESC+key as ALT chord', function() + -- Vim represents ALT/META by setting the "high bit" of the modified key: + -- ALT+j inserts "ê". Nvim does not (#3982). + feed_data('i\022\027j') screen:expect([[ - j{1: } | + <M-j>{1: } | {4:~ }| {4:~ }| {4:~ }| |