mirror of
https://github.com/nushell/reedline.git
synced 2024-09-11 23:57:21 +03:00
* 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 commit070d600545
. * 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 commit62726f29be
.
This commit is contained in:
parent
3f6f0d1c3d
commit
03a1baba6c
@ -559,8 +559,13 @@ impl IdeMenu {
|
|||||||
if use_ansi_coloring {
|
if use_ansi_coloring {
|
||||||
if index == self.index() {
|
if index == self.index() {
|
||||||
format!(
|
format!(
|
||||||
"{}{}{}{}{}{}{}",
|
"{}{}{}{}{}{}{}{}",
|
||||||
vertical_border,
|
vertical_border,
|
||||||
|
suggestion
|
||||||
|
.style
|
||||||
|
.unwrap_or(self.color.text_style)
|
||||||
|
.reverse()
|
||||||
|
.prefix(),
|
||||||
self.color.selected_text_style.prefix(),
|
self.color.selected_text_style.prefix(),
|
||||||
" ".repeat(padding),
|
" ".repeat(padding),
|
||||||
string,
|
string,
|
||||||
@ -572,7 +577,7 @@ impl IdeMenu {
|
|||||||
format!(
|
format!(
|
||||||
"{}{}{}{}{}{}{}",
|
"{}{}{}{}{}{}{}",
|
||||||
vertical_border,
|
vertical_border,
|
||||||
self.color.text_style.prefix(),
|
suggestion.style.unwrap_or(self.color.text_style).prefix(),
|
||||||
" ".repeat(padding),
|
" ".repeat(padding),
|
||||||
string,
|
string,
|
||||||
" ".repeat(padding_right),
|
" ".repeat(padding_right),
|
||||||
|
Loading…
Reference in New Issue
Block a user