diff options
author | 2013-04-29 16:13:59 -0400 | |
---|---|---|
committer | 2013-04-29 16:13:59 -0400 | |
commit | 78990df4f114c45adc7fd2678ffaedf0c4124d95 (patch) | |
tree | 9e79e8f93aa07ee9384b5ddd8cc548dc3c8ea20f /modules/textadept/adeptsense.lua | |
parent | 8407377bbe3800dbc4706f584285b7a7858efabc (diff) | |
download | textadept-78990df4f114c45adc7fd2678ffaedf0c4124d95.tar.gz textadept-78990df4f114c45adc7fd2678ffaedf0c4124d95.zip |
More code cleanup.
"local buffer = buffer" and similar optimizations are not needed since lexing
the buffer is much more expensive and reaction time is limited by how fast the
keyboard can submit key presses.
Diffstat (limited to 'modules/textadept/adeptsense.lua')
-rw-r--r-- | modules/textadept/adeptsense.lua | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/modules/textadept/adeptsense.lua b/modules/textadept/adeptsense.lua index 74998977..6d58ff41 100644 --- a/modules/textadept/adeptsense.lua +++ b/modules/textadept/adeptsense.lua @@ -323,7 +323,7 @@ local M = {} -- contain: -- -- -- Load CSS Adeptsense. --- if not _M.css then _M.css = require 'css' end +-- if not _M.css then _M.css = require('css') end -- -- You will have to do something similar if you are writing an Adeptsense for a -- child lexer language. @@ -577,7 +577,6 @@ end -- @see get_completions -- @name complete function M.complete(sense, only_fields, only_functions) - local buffer = buffer sense = sense or (_M[buffer:get_lexer(true)] or {}).sense if not sense then return end local symbol, part = sense:get_symbol() @@ -672,7 +671,6 @@ local apidocs = nil -- @see get_apidoc -- @name show_apidoc function M.show_apidoc(sense) - local buffer = buffer if buffer:call_tip_active() then events.emit(events.CALL_TIP_CLICK) return end sense = sense or (_M[buffer:get_lexer(true)] or {}).sense if not sense then return end |