Skip to content

Commit e77e5e7

Browse files
authored
Change the default cursor to be at "Solve it" link for detail buffer (#116)
1 parent 682f7a4 commit e77e5e7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

leetcode.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1061,7 +1061,8 @@ will show the detail in other window and jump to it."
10611061
'help-echo "Open the problem solution page in browser."))
10621062
(rename-buffer buf-name)
10631063
(leetcode--problem-detail-mode)
1064-
(switch-to-buffer (current-buffer))))))
1064+
(switch-to-buffer (current-buffer))
1065+
(search-backward "Solve it")))))
10651066

10661067
(aio-defun leetcode-show-problem (problem-id)
10671068
"Show the detail of problem with id PROBLEM-ID.

0 commit comments

Comments
 (0)