We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
leetcode-show-problem
1 parent b0c466f commit da2ff9bCopy full SHA for da2ff9b
leetcode.el
@@ -1175,7 +1175,8 @@ Get problem by id and use `shr-render-buffer' to render problem
1175
detail. This action will show the detail in other window and jump
1176
to it."
1177
(interactive (list (read-string "Show problem by problem id: "
1178
- (leetcode--get-current-problem-id))))
+ (when (derived-mode-p 'leetcode--problems-mode)
1179
+ (leetcode--get-current-problem-id)))))
1180
(let* ((problem (leetcode--get-problem-by-id problem-id))
1181
(title-slug (leetcode-problem-title-slug problem))
1182
(problem-with-title (aio-await (leetcode--ensure-question-title problem)))
0 commit comments