Skip to content
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

[BUGFIX] Shows error for empty filenames (vim-startify) #1081

Merged

Conversation

andys8
Copy link
Contributor

@andys8 andys8 commented Jan 19, 2020

Description of Changes

There was a fix in #1043 which improves the behavior for non saved filenames. Those are not on disk, but also not empty. This lead to an issue #1059 where actual "empty files" like created with vim-startify or stdin lead to an error. This change fixes this by adapting the order of the tests. It'll print "no file for the current buffer" for empty files.

Closes #1059

@PhilRunninger
Copy link
Member

PhilRunninger commented Jan 20, 2020

@andys8 Thanks for finding this and writing a fix for it. I won't have a chance to review it until Saturday. In the meantime, please update CHANGELOG.md with the new version number. This will be a patch number increment: 6.4.6 Thanks.

There was a fix in preservim#1043 which improves the behavior for non saved
filenames. Those are not on disk, but also not empty. This lead to an
issue preservim#1059 where actual "empty files" like created with vim-startify or
stdin lead to an error. This change fixes this by adapting the order of
the tests. It'll print "no file for the current buffer" for empty files.

Solves preservim#1059
@andys8 andys8 force-pushed the bugfix/1059-fails-with-vim-startify branch from 2b38bd8 to 881c265 Compare January 20, 2020 14:06
@andys8
Copy link
Contributor Author

andys8 commented Jan 20, 2020

Thanks, no hurry. I updated the changelog.

Copy link
Member

@PhilRunninger PhilRunninger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Looks good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NERDTreeFind fails with vim-startify or empty buffer
2 participants