mirror of
https://github.com/nushell/reedline.git
synced 2024-09-11 15:55:50 +03:00
fix clippy, add typo dict (#698)
This commit is contained in:
parent
f3962232ba
commit
aa101f4d69
@ -6,3 +6,5 @@ extend-exclude = ["src/core_editor/line_buffer.rs"]
|
||||
iterm = "iterm"
|
||||
# For testing completion of the word build
|
||||
bui = "bui"
|
||||
# for sqlite backed history
|
||||
wheres = "wheres"
|
||||
|
@ -1538,7 +1538,7 @@ impl Reedline {
|
||||
self.get_history_session_id(),
|
||||
)))
|
||||
.unwrap_or_else(|_| Vec::new())
|
||||
.get(0)
|
||||
.first()
|
||||
.and_then(|history| history.command_line.split_whitespace().next_back())
|
||||
.map(|token| (parsed.remainder.len(), indicator.len(), token.to_string())),
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user