aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2020-08-26 14:52:21 +0200
committerFlorian Fischer <florian.fl.fischer@fau.de>2020-08-26 14:52:21 +0200
commite0c59627c5adf95a2da57867f82c81970d123a93 (patch)
treed0fd39140337f2a5af49ecbe0af56cfa4fab8c8c
parent6619dd4570be1b00f5611138ce32fda414e69ba7 (diff)
downloadvis-spellcheck-e0c59627c5adf95a2da57867f82c81970d123a93.tar.gz
vis-spellcheck-e0c59627c5adf95a2da57867f82c81970d123a93.zip
remove unused variable definitions
-rw-r--r--spellcheck.lua3
1 files changed, 0 insertions, 3 deletions
diff --git a/spellcheck.lua b/spellcheck.lua
index 52a2e54..73b4650 100644
--- a/spellcheck.lua
+++ b/spellcheck.lua
@@ -123,7 +123,6 @@ local wrapped_lex_funcs = {}
local wrap_lex_func = function(old_lex_func)
return function(lexer, data, index, redrawtime_max)
- -- vis:info("hooked lexer.lex")
local tokens, timedout = old_lex_func(lexer, data, index, redrawtime_max)
-- quit early if the lexer already took to long
@@ -133,9 +132,7 @@ local wrap_lex_func = function(old_lex_func)
return tokens, timedout
end
- local log = nil
local win = vis.win
- local cmd = spellcheck.list_cmd:format(spellcheck.lang)
local new_tokens = {}
-- get file position we lex