Permalink
Browse files

Don't let empty prefix + empty buffer trigger the newline

  • Loading branch information...
1 parent 0f1de1c commit 97abbddb9be9dbc9a6f3385916e9aa5b58b9e3e6 @bitprophet bitprophet committed Oct 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 fabric/io.py
View
@@ -148,7 +148,7 @@ def loop(self):
# Print trailing new line if the last thing we printed was our line
# prefix.
- if "".join(self.write_buffer) == self.prefix:
+ if self.prefix and "".join(self.write_buffer) == self.prefix:
self._flush('\n')
def prompt(self):

0 comments on commit 97abbdd

Please sign in to comment.