fix endline in python3
This commit is contained in:
parent
d3d07cb23e
commit
62554bd2b0
@ -188,8 +188,9 @@ else:
|
|||||||
# It is not entirely clear when and why that happens.
|
# It is not entirely clear when and why that happens.
|
||||||
# However, extra newlines are almost never required, while there are linters that complain
|
# However, extra newlines are almost never required, while there are linters that complain
|
||||||
# about superfluous newlines, so we remove one empty newline at the end of the file.
|
# about superfluous newlines, so we remove one empty newline at the end of the file.
|
||||||
if stdoutdata[-1] == os.linesep:
|
stdoutdata_decoded = stdoutdata.decode('utf-8')
|
||||||
stdoutdata = stdoutdata[:-1]
|
if stdoutdata_decoded[-1] == os.linesep:
|
||||||
|
stdoutdata = stdoutdata_decoded[:-1]
|
||||||
vim.current.buffer[:] = stdoutdata.split(os.linesep)
|
vim.current.buffer[:] = stdoutdata.split(os.linesep)
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user