Skip to content

Commit 62833ff

Browse files
committed
Assign color_scheme only once
1 parent fc3e65f commit 62833ff

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

bpython/config.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -324,12 +324,11 @@ def get_key_no_doublebind(command: str) -> str:
324324
)
325325
self.unicode_box = config.getboolean("general", "unicode_box")
326326

327+
self.color_scheme = dict()
327328
color_scheme_name = config.get("general", "color_scheme")
328329
if color_scheme_name == "default":
329-
self.color_scheme = self.default_colors
330+
self.color_scheme.update(self.default_colors)
330331
else:
331-
self.color_scheme = dict()
332-
333332
path = get_config_home() / f"{color_scheme_name}.theme"
334333
try:
335334
load_theme(path, self.color_scheme, self.default_colors)

0 commit comments

Comments
 (0)