diff --git a/kitty/window.py b/kitty/window.py index 3b9c0876a..f1f08e516 100644 --- a/kitty/window.py +++ b/kitty/window.py @@ -904,7 +904,7 @@ class Window: if data['type'] == 'confirm': get_boss().confirm( message, callback, window=self, confirm_on_cancel=bool(data.get('confirm_on_cancel')), - confirm_on_accept=bool(data.get('confirm_on_accept'))) + confirm_on_accept=bool(data.get('confirm_on_accept', True))) elif data['type'] == 'choose': get_boss().choose( message, callback, *data['choices'], window=self, default=data.get('default', '')) diff --git a/shell-integration/ssh/askpass.py b/shell-integration/ssh/askpass.py index 909a0068a..4abf070e8 100755 --- a/shell-integration/ssh/askpass.py +++ b/shell-integration/ssh/askpass.py @@ -33,7 +33,7 @@ with SharedMemory( if shm.read(1) == b'\x01': break response = json.loads(shm.read_data_with_size()) - if is_confirm: - response = 'yes' if response else 'no' - if response: - print(response, flush=True) +if is_confirm: + response = 'yes' if response else 'no' +if response: + print(response, flush=True)