diff options
author | 2009-01-10 17:31:21 -0500 | |
---|---|---|
committer | 2009-01-10 17:31:21 -0500 | |
commit | ac698c5ea71d26e56289a18e664c6f8be1aa56c5 (patch) | |
tree | e683366e29ff29e8c0ebff54731ff505c201a6ff /themes/dark | |
parent | 0194a626fcb17bcb037341fc6c2f586f54d26035 (diff) | |
download | textadept-ac698c5ea71d26e56289a18e664c6f8be1aa56c5.tar.gz textadept-ac698c5ea71d26e56289a18e664c6f8be1aa56c5.zip |
Various improvements to speed and readability of Lua code.
Added 'local textadept = _G.textadept' to all Lua modules, themes, etc.
Added more locals to core/ext/keys.lua for speed improvement.
Reformatted some Lua modules to the earlier standard committed.
Diffstat (limited to 'themes/dark')
-rw-r--r-- | themes/dark/buffer.lua | 3 | ||||
-rw-r--r-- | themes/dark/view.lua | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/themes/dark/buffer.lua b/themes/dark/buffer.lua index bf9862fe..db045766 100644 --- a/themes/dark/buffer.lua +++ b/themes/dark/buffer.lua @@ -1,7 +1,8 @@ -- Copyright 2007-2009 Mitchell mitchell<att>caladbolg.net. See LICENSE. -- Dark editor theme for Textadept. -local textadept, buffer = textadept, buffer +local textadept = _G.textadept +local buffer = buffer -- folding buffer.property['fold'] = '1' diff --git a/themes/dark/view.lua b/themes/dark/view.lua index 0a576637..63fd79d0 100644 --- a/themes/dark/view.lua +++ b/themes/dark/view.lua @@ -1,7 +1,9 @@ -- Copyright 2007-2009 Mitchell mitchell<att>caladbolg.net. See LICENSE. -- Dark editor theme for Textadept. -local c, buffer = textadept.constants, buffer +local textadept = _G.textadept +local c = textadept.constants +local buffer = buffer -- caret buffer.caret_fore = 11184810 -- 0xAA | 0xAA << 8 | 0xAA << 16 |