Commit 7eb163ff authored by adam j hartz's avatar adam j hartz

only ask for more lines after nonempty input

resolves #16
parent 89e8e4d7
......@@ -100,7 +100,7 @@ class BaseShell(object):
"""
code = None
self.buffer.append(line)
if self.need_more_lines:
if self.need_more_lines and line.strip():
return None, code
src = ''.join(self.buffer)
_cache = should_use_cache(self.execer, 'single')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment