ianding1 / leetcode.vim

Solve LeetCode problems in Vim!
MIT License
311 stars 43 forks source link

Minor fix for the first-time leetcode list loading; #30

Closed axrt closed 4 years ago

axrt commented 4 years ago

Hi ianding1!

Idk if you can reproduce, but whenever I call ":LeetCodeList" for the first time, what happens is:

The proposed change is to check whether the list buffer has already been loaded, and if yes - no need to redefine the functions.

Thank you for considering the pr, and once again - thank you for the plugin, it saves me from a lot of going back and forth to the web page;

Cheers!