Fixes the logger plugin, patch by Eric Badger

This commit is contained in:
Stephen Boddy 2017-01-12 03:59:30 +01:00
parent b4177b9c92
commit 45cb6e05c6

View File

@ -44,6 +44,7 @@ class Logger(plugin.MenuItem):
""" Final function to write a file """
content = terminal.get_text_range(row_start, col_start, row_end, col_end,
lambda *a: True)
content = content[0]
fd = self.loggers[terminal]["fd"]
# Don't write the last char which is always '\n'
fd.write(content[:-1])