Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Bug Fixes
* Let interactive changes to the prompt format respect dynamically-computed values.
* Better handle arguments to `system cd`.
* Fix missing keepalives in `\e` prompt loop.
* Always strip trailing newlines with `\e`.


1.56.0 (2026/02/23)
Expand Down
2 changes: 1 addition & 1 deletion mycli/packages/special/iocommands.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def open_external_editor(filename: str | None = None, sql: str | None = None) ->
query = f.read()
except IOError:
message = f'Error reading file: {filename}'
return (query, message)
return (query.rstrip('\n'), message)

# Populate the editor buffer with the partial sql (if available) and a
# placeholder comment.
Expand Down