Fix codespell warning about pre-selects (#13605)

This commit is contained in:
Curtis 'Fjord' Hawthorne 2026-03-05 10:41:58 -08:00 committed by GitHub
parent 1980b6ce00
commit ee2e3c415b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -296,7 +296,7 @@ fn theme_picker_subtitle(codex_home: Option<&Path>, terminal_width: Option<u16>)
///
/// `current_name` should be the value of `Config::tui_theme` (the persisted
/// preference). When it names a theme that is currently available the picker
/// pre-selects it; otherwise the picker falls back to the configured name (or
/// preselects it; otherwise the picker falls back to the configured name (or
/// adaptive default) so opening the picker without a persisted preference still
/// highlights the most likely intended entry.
pub(crate) fn build_theme_picker_params(
@ -321,7 +321,7 @@ pub(crate) fn build_theme_picker_params(
highlight::configured_theme_name()
};
// Track the index of the current theme so we can pre-select it.
// Track the index of the current theme so we can preselect it.
let mut initial_idx = None;
let items: Vec<SelectionItem> = entries