Skip to content

Commit

Permalink
upgrade rustyline
Browse files Browse the repository at this point in the history
  • Loading branch information
andy-k committed Dec 29, 2023
1 parent 313c310 commit d379488
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 31 deletions.
41 changes: 14 additions & 27 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ csv = "1.3.0"
num_cpus = "1.16.0"
rand = "0.8.5"
rand_chacha = "0.3.1"
rustyline = "12.0.0"
rustyline-derive = "0.9.0"
rustyline = "13.0.0"
rustyline-derive = "0.10.0"
serde = { version = "1.0.193", features = ["derive"] }
serde_json = "1.0.108"
shell-words = "1.1.0"
Expand Down
4 changes: 2 additions & 2 deletions src/rlhelper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ impl rustyline::highlight::Highlighter for MyHelper {
self.highlighter.highlight(line, pos)
}

fn highlight_char(&self, line: &str, pos: usize) -> bool {
self.highlighter.highlight_char(line, pos)
fn highlight_char(&self, line: &str, pos: usize, forced: bool) -> bool {
self.highlighter.highlight_char(line, pos, forced)
}
}

Expand Down

0 comments on commit d379488

Please sign in to comment.