Skip to content

Commit

Permalink
removed debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Therrk committed Feb 7, 2023
1 parent 29ef789 commit 66c6f90
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions micro-snippets-plugin/snippets.lua
Original file line number Diff line number Diff line change
Expand Up @@ -284,19 +284,16 @@ local function CursorWord(bp)
local c = bp.Cursor
local x = c.X-1 -- start one rune before the cursor
local result = ""
local debug = io.open("debug","a")
while x >= 0 do
local r = util.RuneStr(c:RuneUnder(x))
if (r:match("^%s")) then -- IsWordChar(r) then
break
else
debug:write(r.. "\n")
result = r .. result
end
x = x-1
end

debug:close()

return result
end
Expand Down

0 comments on commit 66c6f90

Please sign in to comment.