aboutsummaryrefslogtreecommitdiff
path: root/test/functional/legacy/039_visual_block_mode_commands_spec.lua
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2016-03-06 19:48:36 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2016-03-07 03:58:35 -0300
commitc6ec148f2dfc837592d41720e5dc42bbe4e4eb78 (patch)
tree1ff44ec69ddc0b44d0a0ca7e6012ff0fdb8ffb47 /test/functional/legacy/039_visual_block_mode_commands_spec.lua
parent35d8d10a6ac924f3e64dda8c0df46d1f62da5b0a (diff)
downloadrneovim-c6ec148f2dfc837592d41720e5dc42bbe4e4eb78.tar.gz
rneovim-c6ec148f2dfc837592d41720e5dc42bbe4e4eb78.tar.bz2
rneovim-c6ec148f2dfc837592d41720e5dc42bbe4e4eb78.zip
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).
Diffstat (limited to 'test/functional/legacy/039_visual_block_mode_commands_spec.lua')
-rw-r--r--test/functional/legacy/039_visual_block_mode_commands_spec.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/legacy/039_visual_block_mode_commands_spec.lua b/test/functional/legacy/039_visual_block_mode_commands_spec.lua
index 6e1879035b..7195d7d11d 100644
--- a/test/functional/legacy/039_visual_block_mode_commands_spec.lua
+++ b/test/functional/legacy/039_visual_block_mode_commands_spec.lua
@@ -187,7 +187,7 @@ describe('Visual block mode', function()
98<Nul>65
98<Nul>65]]
expected = expected:gsub('<CR>', '\r')
- expected = expected:gsub('<Nul>', '\x00')
+ expected = expected:gsub('<Nul>', '\000')
expect(expected)
end)