Skip to content

Commit aa101f4

Browse files
authored
fix clippy, add typo dict (#698)
1 parent f396223 commit aa101f4

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.typos.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ extend-exclude = ["src/core_editor/line_buffer.rs"]
66
iterm = "iterm"
77
# For testing completion of the word build
88
bui = "bui"
9+
# for sqlite backed history
10+
wheres = "wheres"

src/engine.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1538,7 +1538,7 @@ impl Reedline {
15381538
self.get_history_session_id(),
15391539
)))
15401540
.unwrap_or_else(|_| Vec::new())
1541-
.get(0)
1541+
.first()
15421542
.and_then(|history| history.command_line.split_whitespace().next_back())
15431543
.map(|token| (parsed.remainder.len(), indicator.len(), token.to_string())),
15441544
});

0 commit comments

Comments
 (0)