diff options
author | 2018-04-25 22:52:33 -0400 | |
---|---|---|
committer | 2018-04-25 22:52:33 -0400 | |
commit | 5f4fbc763a90a38508a0a7d4f4ae7a2262ecbd39 (patch) | |
tree | a66ddc4caf4b8a9509330433571d586a6843fe27 /init.lua | |
parent | 795f72c6d49c0566517a43808ce7aaf405220f31 (diff) | |
download | textadept-5f4fbc763a90a38508a0a7d4f4ae7a2262ecbd39.tar.gz textadept-5f4fbc763a90a38508a0a7d4f4ae7a2262ecbd39.zip |
Removed LuaJIT version of Textadept.
Also updated to Lua 5.3 syntax where held back by LuaJIT's 5.1/5.2 syntax.
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -79,8 +79,6 @@ end local buffer = buffer buffer:set_theme(not CURSES and 'light' or 'term') -buffer.FIND_REGEXP = buffer.FIND_REGEXP + buffer.FIND_CXX11REGEX - -- Multiple Selection and Virtual Space buffer.multiple_selection = true buffer.additional_selection_typing = true @@ -301,12 +299,11 @@ events.connect(events.VIEW_NEW, function() } local ctrl_shift_keys = {'L', 'T', 'U', 'Z'} for i = 1, #ctrl_keys do - buffer:clear_cmd_key(string.byte(ctrl_keys[i]) + - bit32.lshift(buffer.MOD_CTRL, 16)) + buffer:clear_cmd_key(string.byte(ctrl_keys[i]) | buffer.MOD_CTRL << 16) end for i = 1, #ctrl_shift_keys do - buffer:clear_cmd_key(string.byte(ctrl_shift_keys[i]) + - bit32.lshift(buffer.MOD_CTRL + buffer.MOD_SHIFT, 16)) + buffer:clear_cmd_key(string.byte(ctrl_shift_keys[i]) | + (buffer.MOD_CTRL | buffer.MOD_SHIFT) << 16) end -- Since BUFFER_NEW loads themes and settings on startup, only load them for -- subsequent views. |