Skip to content

Commit

Permalink
chore: don't log empty objects when debugging is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgrieser committed Dec 11, 2024
1 parent 6c2a5e7 commit 8cdf747
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/various-textobjs/textobjs/charwise/core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ function M.selectClosestTextobj(patterns, scope, lookForwLines)

-- set selection & log
M.setSelection({ closest.row, closest.startCol }, { closest.row, closest.endCol })
if enableLogging then
if enableLogging and type(patterns) == "table" then
local textobj = debug.getinfo(3, "n").name
objLogging._closest = closest.patternName
vim.notify(
Expand Down

0 comments on commit 8cdf747

Please sign in to comment.