fix: make escape sequences compatible with Lua 5.1 (#663)

Escape sequences starting with `\x` are supported by Lua 5.2 and LuaJIT, but not by Lua 5.1
This commit is contained in:
zeertzjq 2022-04-24 15:12:03 +08:00 committed by GitHub
parent 43c69a3479
commit de2c4beaf5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -8,7 +8,7 @@ Mode.map = {
['no'] = 'O-PENDING',
['nov'] = 'O-PENDING',
['noV'] = 'O-PENDING',
['no\x16'] = 'O-PENDING',
['no\22'] = 'O-PENDING',
['niI'] = 'NORMAL',
['niR'] = 'NORMAL',
['niV'] = 'NORMAL',
@ -17,11 +17,11 @@ Mode.map = {
['vs'] = 'VISUAL',
['V'] = 'V-LINE',
['Vs'] = 'V-LINE',
['\x16'] = 'V-BLOCK',
['\x16s'] = 'V-BLOCK',
['\22'] = 'V-BLOCK',
['\22s'] = 'V-BLOCK',
['s'] = 'SELECT',
['S'] = 'S-LINE',
['\x13'] = 'S-BLOCK',
['\19'] = 'S-BLOCK',
['i'] = 'INSERT',
['ic'] = 'INSERT',
['ix'] = 'INSERT',