-
-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Opening neovim in / directory causes the status line to error. #250
Comments
PR Welcome |
True, I don't know if this is the fix that is to be employed because it leaves the field blank, but sure, I'll make a PR. I'll try to see if I can get a better regex going which can handle both cases as well. |
When in doubt, if statements :) |
Merged
Done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the issue
Due to the way the
cwd
module of the statusline is generated. It produces an error when neovim is opened in the/
directory.I'm guessing the match statement cannot handle the directory just being
/
and it errors out.I have already looked to see if the issue has been reported and it was for v2.0: #197
I have updated all my plugins to see if maybe I had an older version, but it still happens.
To reproduce
Expected Behaviour
No error.
Screenshots
Desktop
The text was updated successfully, but these errors were encountered: