Skip to content

Commit

Permalink
Merge branch 'main' into no_repaint
Browse files Browse the repository at this point in the history
  • Loading branch information
WindSoilder committed Jan 4, 2024
2 parents 3595360 + aa101f4 commit bc0e3ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .typos.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 1 addition & 1 deletion src/engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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())),
});
Expand Down

0 comments on commit bc0e3ae

Please sign in to comment.