Skip to content

Commit 1ba7e8b

Browse files
committed
Merge branch 'fix-incremental-os-panel' of https://github.com/alex-huff/kitty
2 parents 4e240b9 + 508df55 commit 1ba7e8b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

kittens/panel/main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,10 @@ def cli_option_to_lsc_configs_map() -> dict[str, tuple[str, ...]]:
116116

117117
def incrementally_update_layer_shell_config(existing: dict[str, Any], cli_options: Iterable[str]) -> LayerShellConfig:
118118
seen_options: dict[str, Any] = {}
119+
cli_options = [('' if x.startswith('--') else '--') + x for x in cli_options]
119120
try:
120121
try:
121-
opts, _ = parse_panel_args(list(cli_options), track_seen_options=seen_options)
122+
opts, _ = parse_panel_args(cli_options, track_seen_options=seen_options)
122123
except SystemExit as e:
123124
raise ValueError(str(e))
124125
lsc = layer_shell_config(opts)

0 commit comments

Comments
 (0)