aboutsummaryrefslogtreecommitdiff
path: root/test/functional/terminal
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-04-04 04:36:13 +0200
committerGitHub <noreply@github.com>2018-04-04 04:36:13 +0200
commite8c39f72fdf19486ef6f3ab276d6d128ee446dc1 (patch)
tree7346b332e92d8e4db6593596feafa8f28aba2298 /test/functional/terminal
parent8b8a75b2cf12c6c229ccdd583420b9815ba8d19a (diff)
parent224ebc0078f29ac3189d7fbd9a59b386ae2ee303 (diff)
downloadrneovim-e8c39f72fdf19486ef6f3ab276d6d128ee446dc1.tar.gz
rneovim-e8c39f72fdf19486ef6f3ab276d6d128ee446dc1.tar.bz2
rneovim-e8c39f72fdf19486ef6f3ab276d6d128ee446dc1.zip
Merge #8226 from justinmk/insert-mode-meta
Diffstat (limited to 'test/functional/terminal')
-rw-r--r--test/functional/terminal/tui_spec.lua14
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:~ }|