aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/input_spec.lua
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2015-02-18 13:16:30 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2015-02-18 13:16:30 -0300
commite7c945ab597aff7af2611ca9bffa4a11e18c0a87 (patch)
tree45e87e5fb1755ce2cdbc5a47e85c43fd40704395 /test/functional/ui/input_spec.lua
parent25ceadab37edba13f5afa78d8b4723da03ef35f0 (diff)
downloadrneovim-e7c945ab597aff7af2611ca9bffa4a11e18c0a87.tar.gz
rneovim-e7c945ab597aff7af2611ca9bffa4a11e18c0a87.tar.bz2
rneovim-e7c945ab597aff7af2611ca9bffa4a11e18c0a87.zip
input: Escape utf8 sequences that contain CSI/K_SPECIAL
Diffstat (limited to 'test/functional/ui/input_spec.lua')
-rw-r--r--test/functional/ui/input_spec.lua8
1 files changed, 8 insertions, 0 deletions
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)