diff --git a/docs/changelog.rst b/docs/changelog.rst index bd3f1c8a3..66af34f7f 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -122,6 +122,8 @@ Detailed list of changes - ssh kitten: Fix incorrect copying of data files when using the python interpreter and also fix incorrect hard link detection (:disc:`8308`) +- Fix a regression in the previous release that broke setting of nullable colors + 0.39.1 [2025-02-01] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/gen/config.py b/gen/config.py index f6ad9760a..a0c5cb1f3 100755 --- a/gen/config.py +++ b/gen/config.py @@ -52,7 +52,7 @@ def main(args: list[str]=sys.argv) -> None: all_colors.append(opt.name) patch_color_list('tools/cmd/at/set_colors.go', nullable_colors, 'NULLABLE') patch_color_list('tools/themes/collection.go', all_colors, 'ALL') - nc = '\n '.join(f'{x!r}' for x in nullable_colors) + nc = '\n, '.join(f'{x!r}' for x in nullable_colors) write_output('kitty', definition, f'\nnullable_colors = frozenset({{\n {nc}\n}})\n') diff --git a/kitty/options/types.py b/kitty/options/types.py index e599e5d80..444edee33 100644 --- a/kitty/options/types.py +++ b/kitty/options/types.py @@ -1045,15 +1045,15 @@ defaults.mouse_map = [ nullable_colors = frozenset({ - 'cursor' - 'cursor_text_color' - 'visual_bell_color' - 'active_border_color' - 'tab_bar_background' - 'tab_bar_margin_color' - 'selection_foreground' + 'cursor', + 'cursor_text_color', + 'visual_bell_color', + 'active_border_color', + 'tab_bar_background', + 'tab_bar_margin_color', + 'selection_foreground', 'selection_background' }) -secret_options = ('remote_control_password', 'file_transfer_confirmation_bypass') \ No newline at end of file +secret_options = ('remote_control_password', 'file_transfer_confirmation_bypass')