From b71edfc1a6058f76ffe88afd4c4e4039dd477cd5 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 11 Aug 2025 11:31:19 +0530 Subject: [PATCH] ... --- kitty/debug_config.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/kitty/debug_config.py b/kitty/debug_config.py index 0ad3c1140..1ea22ee3a 100644 --- a/kitty/debug_config.py +++ b/kitty/debug_config.py @@ -213,11 +213,15 @@ class IssueData: else: yield ch case 'escape': - if ch == 'S': - state = 'sub_start' - else: - yield self.translate_issue_char(ch) - state = 'normal' + match ch: + case 'S': + state = 'sub_start' + case '\\': + yield '\\' + state = 'normal' + case _: + yield self.translate_issue_char(ch) + state = 'normal' case 'sub_start': if ch == '{': # } state = 'sub'