From 5d4e968f50c10888cba50017c4a9ab534d199477 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 19 May 2018 07:33:29 +0530 Subject: [PATCH] Allow commenting lines in command logs --- kitty/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/client.py b/kitty/client.py index d495e0e25..b4750f209 100644 --- a/kitty/client.py +++ b/kitty/client.py @@ -138,7 +138,7 @@ set_dynamic_color = set_color_table_color = write_osc def replay(raw): for line in raw.splitlines(): - if line.strip(): + if line.strip() and not line.startswith('#'): cmd, rest = line.partition(' ')[::2] if cmd in {'draw', 'set_title', 'set_icon', 'set_dynamic_color', 'set_color_table_color'}: globals()[cmd](rest)