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

Wrong handling of EOF lines #11

Open
wookayin opened this issue Oct 12, 2021 · 0 comments
Open

Wrong handling of EOF lines #11

wookayin opened this issue Oct 12, 2021 · 0 comments

Comments

@wookayin
Copy link

Upon Isort-ing the following buffer, a new line will be added near the EOF.

Before:

1 import os
2 import sys
3
4 def foo(a):
5     pass

After (see Line 7, a new blank line is added):

1 import os
2 import sys
3
4
5 def foo(a):
6     pass
7

Running isort from command-line doesn't have such issues: it correctly organizes import statements, but does not add any blank lines at the end of the file. I think updating the neovim buffer contents with isort output did not handle EOF properly.

I was using neovim 0.5.1 and isort 4.3.21.

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

No branches or pull requests

1 participant