Leading spaces in the EvEditor are always taken into account
This commit is contained in:
parent
362e03a3f8
commit
36b268ca81
1 changed files with 2 additions and 5 deletions
|
|
@ -376,18 +376,15 @@ class CmdLineInput(CmdEditorBase):
|
||||||
|
|
||||||
# add a line of text to buffer
|
# add a line of text to buffer
|
||||||
line = self.raw_string
|
line = self.raw_string
|
||||||
print "Entered", repr(line)
|
|
||||||
if not editor._code:
|
if not editor._code:
|
||||||
if not buf:
|
if not buf:
|
||||||
buf = self.args
|
buf = line
|
||||||
else:
|
else:
|
||||||
buf = buf + "\n%s" % self.args
|
buf = buf + "\n%s" % line
|
||||||
else:
|
else:
|
||||||
# if automatic indentation is active, add spaces
|
# if automatic indentation is active, add spaces
|
||||||
if editor._indent >= 0:
|
if editor._indent >= 0:
|
||||||
line = editor.deduce_indent(line, buf)
|
line = editor.deduce_indent(line, buf)
|
||||||
else:
|
|
||||||
line = self.args
|
|
||||||
|
|
||||||
if not buf:
|
if not buf:
|
||||||
buf = line
|
buf = line
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue