Skip to content

Commit af9247c

Browse files
committed
fix(Leet fold): show warning when section not found
1 parent 4f095e7 commit af9247c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎lua/leetcode-ui/question.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ function Question:editor_fold_imports(strict)
113113
---@diagnostic disable-next-line: param-type-mismatch
114114
pcall(vim.cmd, ("%d,%dfold"):format(range.start_i or 1, range.end_i))
115115
end)
116+
else
117+
log.warn("`@leet imports` section not found in editor.")
116118
end
117119
end
118120

0 commit comments

Comments
 (0)