Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion leetcode.el
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,7 @@ LeetCode require slug-title as the request parameters."
"Asynchronously test the code using customized testcase."
(interactive)
(leetcode--loading-mode t)
(let* ((code-buf (current-buffer))
(let* ((code-buf (window-buffer (frame-first-window)))
(slug-title (leetcode--get-slug-title code-buf))
(problem (leetcode--get-problem slug-title))
(problem-id (leetcode-problem-id problem))
Expand Down Expand Up @@ -1287,6 +1287,7 @@ major mode by `leetcode-prefer-language'and `auto-mode-alist'."
(with-current-buffer (get-buffer-create testcase-buf-name)
(erase-buffer)
(insert testcase)
(leetcode-solution-mode t)
(set-window-buffer leetcode--testcase-window (current-buffer)))
(with-current-buffer (get-buffer-create result-buf-name)
(erase-buffer)
Expand Down