diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2015-02-18 13:16:30 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2015-02-18 13:16:30 -0300 |
commit | e7c945ab597aff7af2611ca9bffa4a11e18c0a87 (patch) | |
tree | 45e87e5fb1755ce2cdbc5a47e85c43fd40704395 /test/functional | |
parent | 25ceadab37edba13f5afa78d8b4723da03ef35f0 (diff) | |
download | rneovim-e7c945ab597aff7af2611ca9bffa4a11e18c0a87.tar.gz rneovim-e7c945ab597aff7af2611ca9bffa4a11e18c0a87.tar.bz2 rneovim-e7c945ab597aff7af2611ca9bffa4a11e18c0a87.zip |
input: Escape utf8 sequences that contain CSI/K_SPECIAL
Diffstat (limited to 'test/functional')
-rw-r--r-- | test/functional/legacy/mapping_spec.lua | 5 | ||||
-rw-r--r-- | test/functional/ui/input_spec.lua | 8 |
2 files changed, 11 insertions, 2 deletions
diff --git a/test/functional/legacy/mapping_spec.lua b/test/functional/legacy/mapping_spec.lua index 1451b268c5..c387d7484c 100644 --- a/test/functional/legacy/mapping_spec.lua +++ b/test/functional/legacy/mapping_spec.lua @@ -16,7 +16,7 @@ describe('mapping', function() -- Abbreviations with р (0x80) should work. execute('inoreab чкпр vim') - feed('GAчкпр <cr><esc>') + feed('GAчкпр <esc>') -- langmap should not get remapped in insert mode. execute('inoremap { FAIL_ilangmap') @@ -27,10 +27,11 @@ describe('mapping', function() execute('inoremap <expr> { "FAIL_iexplangmap"') feed('o+<esc>') + -- Assert buffer contents. expect([[ test starts here: - vim + vim + +]]) end) diff --git a/test/functional/ui/input_spec.lua b/test/functional/ui/input_spec.lua index 60a49c4ed7..81af908045 100644 --- a/test/functional/ui/input_spec.lua +++ b/test/functional/ui/input_spec.lua @@ -1,6 +1,7 @@ local helpers = require('test.functional.helpers') local clear, execute, nvim = helpers.clear, helpers.execute, helpers.nvim local feed, next_message, eq = helpers.feed, helpers.next_message, helpers.eq +local expect = helpers.expect describe('mappings', function() local cid @@ -38,3 +39,10 @@ describe('mappings', function() check_mapping('<a-s-c-up>', '<c-s-a-up>') end) end) + +describe('input utf sequences that contain CSI/K_SPECIAL', function() + it('ok', function() + feed('i…<esc>') + expect('…') + end) +end) |