Closed janverb closed 4 years ago
thanks, merged :shipit:
not sure how you end up without a newline at the end of the buffer... i guess it only happens for unsaved buffers, since saving usually adds it. and i guess with this change, black-macchiato
will also add it when formatting the statement.
That's exactly right. Thank you!
python-black-statement
failed when run on the last line with no newline at the end, because it tried to reach past the end of the buffer. This fixes that.