From c5b13ff0f3b6fab347cb2015e6c48efbf5c54bfd Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Wed, 10 Sep 2025 16:29:22 +0900 Subject: [PATCH] fix: strip newlines in history file --- helpers/ui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers/ui.py b/helpers/ui.py index 733608e..335f9d8 100644 --- a/helpers/ui.py +++ b/helpers/ui.py @@ -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: