Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions aider/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -901,7 +901,7 @@ def get_continuation(width, line_number, is_soft_wrap):
if self.clipboard_watcher:
self.clipboard_watcher.stop()

if line.strip("\r\n") and not multiline_input:
if line and line.strip("\r\n") and not multiline_input:
stripped = line.strip("\r\n")
if stripped == "{":
multiline_input = True
Expand All @@ -921,7 +921,7 @@ def get_continuation(width, line_number, is_soft_wrap):
inp = line
break
continue
elif multiline_input and line.strip():
elif multiline_input and line and line.strip():
if multiline_tag:
# Check if line is exactly "tag}"
if line.strip("\r\n") == f"{multiline_tag}}}":
Expand All @@ -933,7 +933,7 @@ def get_continuation(width, line_number, is_soft_wrap):
break
else:
inp += line + "\n"
elif multiline_input:
elif multiline_input and line:
inp += line + "\n"
else:
inp = line
Expand Down