Closed ptn closed 3 years ago
I don't remember the detail but it's a kind of leftover of debugging code. Could you send me a PR so that I can check it in this weekend?
Sure. For context, this was the issue that introduced that code https://github.com/lambdalisue/gina.vim/issues/204.
Should I add gina#complete_threshold
to the topmost return in that function? My PR would delete all of this code, and since the first branch of the conditional does not use that variable, then it would be lost.
It's ok. I'd like to see a PR first 👍
This conditional in command.vim has a return in each of its branches, which means that all of the code after it never runs:
git blame tells me that the intention was to not do autocomplete for non-Gina commands. I believe the code should look something like this: (not meant for merging, just for explanation): https://github.com/ptn/gina.vim/commit/288abe535b7c862bf64c8e029baedf579d8ba454
Gina checkout <TAB>
with command.vim as it is in master, there is no autocompletion.Gina checkout <TAB>
does autocomplete.The unreachable code is almost the same as the first branch in the if anyway, though I'm not sure about that
[:g:gina#complete_threshold]
, which the if branch doesn't have.