mirror of
https://github.com/nushell/nushell
synced 2024-11-10 07:04:13 +00:00
parent
bc119a5e98
commit
488f81d012
3 changed files with 4 additions and 4 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -3392,7 +3392,7 @@ dependencies = [
|
|||
[[package]]
|
||||
name = "reedline"
|
||||
version = "0.2.0"
|
||||
source = "git+https://github.com/nushell/reedline?branch=main#e75a3c340a6062c6843956a8ebca234b98f33f0d"
|
||||
source = "git+https://github.com/nushell/reedline?branch=main#3209848ddb132e9ffbc8baf9d0f3bbdf3f729a90"
|
||||
dependencies = [
|
||||
"chrono",
|
||||
"crossterm",
|
||||
|
|
|
@ -187,7 +187,7 @@ let $config = {
|
|||
}
|
||||
history_config: {
|
||||
page_size: 10
|
||||
selector: ":"
|
||||
selector: "!"
|
||||
text_style: green
|
||||
selected_text_style: green_reverse
|
||||
marker: "? "
|
||||
|
|
|
@ -87,8 +87,8 @@ pub(crate) fn add_history_menu(line_editor: Reedline, config: &Config) -> Reedli
|
|||
.and_then(|value| value.as_string().ok())
|
||||
{
|
||||
Some(value) => {
|
||||
let char = value.chars().next().unwrap_or(':');
|
||||
history_menu.with_row_char(char)
|
||||
let char = value.chars().next().unwrap_or('!');
|
||||
history_menu.with_selection_char(char)
|
||||
}
|
||||
None => history_menu,
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue