Fix style in ide menu (#725)

* get correct cursor pos when menu indicator contains newline

* add tests

* fix cursor pos in multiline prompt

* make description mode enum public

* add doc comment

* respect windows newline in update_values

* Revert "respect windows newline in update_values"

This reverts commit 070d600545.

* add complete_with_base_ranges to Completer

* add builder for correct_cursor_pos

* add config options to completion examples

* add style to ide menu

* run fmt

* start menu refactor

* Revert "start menu refactor"

This reverts commit 62726f29be.

* fix style
This commit is contained in:
maxomatic458 2024-01-26 14:29:56 +01:00 committed by GitHub
parent 03a1baba6c
commit 42bcd61b47
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -561,11 +561,7 @@ impl IdeMenu {
format!(
"{}{}{}{}{}{}{}{}",
vertical_border,
suggestion
.style
.unwrap_or(self.color.text_style)
.reverse()
.prefix(),
suggestion.style.unwrap_or(self.color.text_style).prefix(),
self.color.selected_text_style.prefix(),
" ".repeat(padding),
string,