mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
Rewrite hexadecimal escape sequences as decimal in lua strings
The hexadecimal notation is a Luajit extension which is not compatible with Lua 5.1. While Lua 5.2 does support hexadecimal sequences, it is better to target Lua 5.1 for maximum compatibility with Luajit(which has fully compatible with 5.1 API/ABI).
This commit is contained in:
@@ -191,7 +191,7 @@ describe('undo tree:', function()
|
||||
end)
|
||||
|
||||
it('undo an expression-register', function()
|
||||
local normal_commands = 'o1\x1ba2\x12=string(123)\n\x1b'
|
||||
local normal_commands = 'o1\027a2\018=string(123)\n\027'
|
||||
write_file('Xtest.source', normal_commands)
|
||||
|
||||
feed('oa<esc>')
|
||||
|
||||
Reference in New Issue
Block a user