Skip to content

Preserve selected styles in fuzzy completions - #2100

Open
jakezwang wants to merge 1 commit into
prompt-toolkit:mainfrom
jakezwang:fix/fuzzy-completer-selected-style
Open

jakezwang wants to merge 1 commit into
prompt-toolkit:mainfrom
jakezwang:fix/fuzzy-completer-selected-style

Conversation

@jakezwang

Copy link
Copy Markdown

FuzzyCompleter preserves style but drops selected_style when rebuilding completions. This removes custom selected-row colors, including when the input is empty.

Copy selected_style from the wrapped completion and cover empty input and a fuzzy match.

Validation: all 158 tests pass on Python 3.10 and 3.14; Ruff, typos, strict mypy for Windows/Linux/macOS, pre-commit hooks, and package builds pass.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant