diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2017-03-02 13:02:27 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2017-03-02 13:02:27 +0100 |
| commit | a08fff28fb2f0bdcf998d1cc2094a2c2654de5fd (patch) | |
| tree | 6392ac2d1a6d16898ee90668e79569ffaf17461b | |
| parent | e6bd30be8d7756b8d9091c14b11cfefe4d3544ff (diff) | |
| download | vis-a08fff28fb2f0bdcf998d1cc2094a2c2654de5fd.tar.gz vis-a08fff28fb2f0bdcf998d1cc2094a2c2654de5fd.tar.xz | |
lua: fix luacheck warnings in plugins
| -rw-r--r-- | lua/plugins/textobject-lexer.lua | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lua/plugins/textobject-lexer.lua b/lua/plugins/textobject-lexer.lua index 681f226..ef29a9c 100644 --- a/lua/plugins/textobject-lexer.lua +++ b/lua/plugins/textobject-lexer.lua @@ -18,12 +18,9 @@ vis:textobject_new("ii", function(win, pos) local data = win.file:content(before, after - before) local tokens = lexer:lex(data) local cur = before - -- print(before..", "..pos..", ".. after) for i = 1, #tokens, 2 do - local name = tokens[i] local token_next = before + tokens[i+1] - 1 - -- print(name..": ["..cur..", "..token_next.."] pos: "..pos) if cur <= pos and pos < token_next then return cur, token_next end |
