Compat: result of --remote-expr always ends with newline

References https://github.com/mhinz/neovim-remote/pull/121
pull/124/head
Marco Hinz 5 years ago
parent 1ee9107861
commit 13612ca350
No known key found for this signature in database
GPG Key ID: 1C980A1B657B4A4F

@ -465,7 +465,9 @@ def main(argv=sys.argv, env=os.environ):
elif type(result) is dict:
print({ (k.decode() if type(k) is bytes else k): v for (k,v) in result.items() })
else:
print(result)
if not result.endswith(os.linesep):
result += os.linesep
print(result, end='', flush=True)
if options.o:
if options.d and not nvr.started_new_process:

Loading…
Cancel
Save