Skip to content

Commit

Permalink
Fix style in ide menu (#725)
Browse files Browse the repository at this point in the history
* 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 070d600.

* 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 62726f2.

* fix style
  • Loading branch information
maxomatic458 authored Jan 26, 2024
1 parent 03a1bab commit 42bcd61
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/menu/ide_menu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 42bcd61

Please sign in to comment.