Skip to content

Commit 93b1c98

Browse files
tenfyzhongianding1
authored andcommitted
Redraw the list when select a topic or companry.
It will refresh the state of the problem.
1 parent ebbcc6c commit 93b1c98

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

autoload/leetcode.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ function! s:HandleProblemListCR() abort
480480
let topic_slug = expand('<cWORD>')
481481
let topic_slug = s:TagName(topic_slug)
482482
if topic_slug != ''
483-
call s:ListProblemsOfTopic(topic_slug, 'norefresh')
483+
call s:ListProblemsOfTopic(topic_slug, 'redraw')
484484
endif
485485
return
486486
endif
@@ -490,7 +490,7 @@ function! s:HandleProblemListCR() abort
490490
let company_slug = expand('<cWORD>')
491491
let company_slug = s:TagName(company_slug)
492492
if company_slug != ''
493-
call s:ListProblemsOfCompany(company_slug, 'norefresh')
493+
call s:ListProblemsOfCompany(company_slug, 'redraw')
494494
endif
495495
return
496496
endif

0 commit comments

Comments
 (0)