mirror of
https://github.com/neovim/neovim.git
synced 2025-12-15 19:05:40 +00:00
fix(input): never escape CSI bytes
This commit is contained in:
@@ -114,11 +114,30 @@ describe('mappings', function()
|
||||
end)
|
||||
end)
|
||||
|
||||
describe('input utf sequences that contain CSI/K_SPECIAL', function()
|
||||
describe('input utf sequences that contain K_SPECIAL (0x80)', function()
|
||||
it('ok', function()
|
||||
feed('i…<esc>')
|
||||
expect('…')
|
||||
end)
|
||||
|
||||
it('can be mapped', function()
|
||||
command('inoremap … E280A6')
|
||||
feed('i…<esc>')
|
||||
expect('E280A6')
|
||||
end)
|
||||
end)
|
||||
|
||||
describe('input utf sequences that contain CSI (0x9B)', function()
|
||||
it('ok', function()
|
||||
feed('iě<esc>')
|
||||
expect('ě')
|
||||
end)
|
||||
|
||||
it('can be mapped', function()
|
||||
command('inoremap ě C49B')
|
||||
feed('iě<esc>')
|
||||
expect('C49B')
|
||||
end)
|
||||
end)
|
||||
|
||||
describe('input non-printable chars', function()
|
||||
|
||||
Reference in New Issue
Block a user