From 78990df4f114c45adc7fd2678ffaedf0c4124d95 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Mon, 29 Apr 2013 16:13:59 -0400 Subject: 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. --- modules/textadept/adeptsense.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'modules/textadept/adeptsense.lua') 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 -- cgit v1.2.3