aboutsummaryrefslogtreecommitdiff
path: root/lua/plugins/textobject-lexer.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/plugins/textobject-lexer.lua')
-rw-r--r--lua/plugins/textobject-lexer.lua3
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