Fix a regression in the previous release that broke setting of nullable colors

This commit is contained in:
Kovid Goyal
2025-02-11 22:07:42 +05:30
parent 35d51415f7
commit c7fb942c4c
3 changed files with 11 additions and 9 deletions

View File

@@ -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]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

View File

@@ -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')

16
kitty/options/types.py generated
View File

@@ -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')
secret_options = ('remote_control_password', 'file_transfer_confirmation_bypass')