Closed jakutis closed 2 years ago
The nested if
statements are breaking my brain. I'll trust that it works, but for the sake of my 2 remaining brain cells, I'd like to get the logic cleaned up a bit. It's probably time to add some tests 😊
I'll try to play with the code again this weekend and see if I can get some tests in place to help explain what's going on.
The nested
if
statements are breaking my brain. I'll trust that it works, but for the sake of my 2 remaining brain cells, I'd like to get the logic cleaned up a bit. It's probably time to add some tests blushI'll try to play with the code again this weekend and see if I can get some tests in place to help explain what's going on.
Yes, the cleanup was low-hanging, pushed it..
Brain un-broken. Thanks for the update!
This fixes use case, when for example user specifies a relative path as the last argument to
:SideSearch
and then navigates from one file to another while his Vim config changes current Vim dir on every file/buffer opening/selection, for example with this config:Sorry for not noticing this in #16