mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-06 09:20:57 +01:00
Merge branch 'SmartViking-lstrip-first-line'
This commit is contained in:
commit
f44013b317
1 changed files with 3 additions and 0 deletions
|
@ -110,6 +110,9 @@ class Shell(Cmd):
|
|||
"""Overridden to no-op."""
|
||||
return '', line, line
|
||||
|
||||
def precmd(self, line):
|
||||
return line if self.need_more_lines else line.lstrip()
|
||||
|
||||
def default(self, line):
|
||||
"""Implements code execution."""
|
||||
line = line if line.endswith('\n') else line + '\n'
|
||||
|
|
Loading…
Add table
Reference in a new issue