Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit f440ff5

Browse files
committed
refactor: reset code only questions with status ac (#72)
1 parent 2d8a306 commit f440ff5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/leetcode-ui/question.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ function Question:open_buffer(existed)
102102
pcall(vim.cmd, ("%d,%dfold"):format(1, i))
103103
end
104104

105-
if existed then
105+
if existed and self.cache.status == "ac" then
106106
self:reset_lines()
107107
end
108108
end

0 commit comments

Comments
 (0)