Prevent whitespace trimming for stdin input (#168)

Let's only remove null terminators, not whitespaces.
pull/179/head
Gabriel Sanches 2 years ago committed by GitHub
parent c1f1d10d37
commit 1aa1651c33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -88,7 +88,7 @@ class Nvr():
def read_stdin_into_buffer(self, cmd):
self.server.command(cmd)
for line in sys.stdin:
self.server.funcs.append('$', line.rstrip())
self.server.funcs.append('$', line[:-1])
self.server.command('silent 1delete _ | set nomodified')
def fnameescaped_command(self, cmd, path):

Loading…
Cancel
Save