From dca8c65376a807f607ff43a32b2aabac909f5d76 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 2 Jun 2022 10:41:08 +0530 Subject: [PATCH] Fix display of url open failures not working --- kitty/boss.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kitty/boss.py b/kitty/boss.py index df1d963f0..f6aaf6c6b 100644 --- a/kitty/boss.py +++ b/kitty/boss.py @@ -2286,8 +2286,8 @@ class Boss: if failures: from kittens.tui.operations import styled - spec = '\n '.join(styled(u, fg='red') for u in failures) - bdata = f"Unknown URL type, cannot open:\n\n {spec}".encode('utf-8') + spec = '\n '.join(styled(u, fg='yellow') for u in failures) + bdata = json.dumps({'msg': f"Unknown URL type, cannot open:\n {spec}"}).encode('utf-8') special_window = SpecialWindow([kitty_exe(), '+kitten', 'show_error', '--title', 'Open URL Error'], bdata, 'Open URL Error') if needs_window_replaced and tab is not None: tab.new_special_window(special_window)