Merge pull request #17279 from zeertzjq/state-enter-vpeekc

fix(event-loop): call vpeekc() directly first to check for character
This commit is contained in:
bfredl
2022-02-06 19:22:02 +01:00
committed by GitHub
4 changed files with 43 additions and 8 deletions

View File

@@ -140,6 +140,25 @@ describe('input utf sequences that contain CSI (0x9B)', function()
end)
end)
describe('input split utf sequences', function()
it('ok', function()
local str = ''
feed('i' .. str:sub(1, 1))
helpers.sleep(10)
feed(str:sub(2, 3))
expect('')
end)
it('can be mapped', function()
command('inoremap ► E296BA')
local str = ''
feed('i' .. str:sub(1, 1))
helpers.sleep(10)
feed(str:sub(2, 3))
expect('E296BA')
end)
end)
describe('input non-printable chars', function()
after_each(function()
os.remove('Xtest-overwrite')