fix: strip newlines in history file

This commit is contained in:
aclist 2025-09-10 16:29:22 +09:00
parent 5a33591d6a
commit c5b13ff0f3

View File

@ -780,7 +780,7 @@ def set_surrounding_margins(widget: Gtk.Widget, margin: int) -> None:
def query_history() -> list | None:
try:
with open(history_file, "r") as f:
rows = [row for row in f]
rows = [row.rstrip("\n") for row in f]
except OSError:
rows = None
finally: