It seems whenever I have an if/do block, folding the containing function folds everything below it as well.
Hopefully these images explain better:
In this image, it looks like oauth_redirect_url is the last fold/function

So I open it and, the rest of the file appears too!

Notice the inner if block. This bug only happens when there is an if block in the function.