8000 Fix run · python-mode/python-mode@fa16097 · GitHub
[go: up one dir, main page]

Skip to content

Commit fa16097

Browse files
committed
Fix run
1 parent b1d1468 commit fa16097

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pymode/run.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,6 @@ def __prepare_lines(line1, line2):
7373
indent = len(line) - len(line.lstrip())
7474
break
7575

76+
if len(lines) == 1:
77+
lines.append('')
7678
return [l[indent:] for l in lines]

0 commit comments

Comments
 (0)
0