mirror of
https://github.com/nushell/reedline.git
synced 2024-09-11 15:55:50 +03:00
parent
1c17a8d0f2
commit
f3962232ba
@ -53,7 +53,7 @@ impl Hinter for CwdAwareHinter {
|
||||
history.session(),
|
||||
))
|
||||
.unwrap_or_default()
|
||||
.get(0)
|
||||
.first()
|
||||
.map_or_else(String::new, |entry| {
|
||||
entry
|
||||
.command_line
|
||||
|
@ -23,7 +23,7 @@ impl Hinter for DefaultHinter {
|
||||
history.session(),
|
||||
))
|
||||
.expect("todo: error handling")
|
||||
.get(0)
|
||||
.first()
|
||||
.map_or_else(String::new, |entry| {
|
||||
entry
|
||||
.command_line
|
||||
|
Loading…
Reference in New Issue
Block a user