Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/prompt_toolkit/styles/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
("completion-menu.completion fuzzymatch.outside", "fg:#444444"),
("completion-menu.completion fuzzymatch.inside", "bold"),
("completion-menu.completion fuzzymatch.inside.character", "underline"),
("completion-menu.completion.current fuzzymatch.outside", "fg:default"),
("completion-menu.completion.current fuzzymatch.outside", "fg:#444444"),
("completion-menu.completion.current fuzzymatch.inside", "nobold"),
# Styling of readline-like completions.
("readline-like-completions", ""),
Expand Down
13 changes: 13 additions & 0 deletions tests/test_default_style.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
from prompt_toolkit.styles.defaults import default_ui_style


def test_selected_fuzzy_completion_outside_colors() -> None:
attrs = default_ui_style().get_attrs_for_style_str(
"class:completion-menu.completion.current class:fuzzymatch.outside"
)

# Reverse makes the foreground the background: it must not depend on the
# terminal foreground, which can be white like the selected text.
assert attrs.color == "444444"
assert attrs.bgcolor == "ffffff"
assert attrs.reverse
Loading