Resolves issue 2694 by updating rustyline to 17.0.2

This commit is contained in:
Alexander McLin
2026-03-29 14:49:51 -04:00
parent 79a9b950cb
commit 0623e8e7df
3 changed files with 34 additions and 36 deletions

View File

@@ -1,5 +1,5 @@
use rustyline::completion::Completer;
use rustyline::highlight::{Highlighter, MatchingBracketHighlighter};
use rustyline::highlight::{CmdKind, Highlighter, MatchingBracketHighlighter};
use rustyline::hint::Hinter;
use rustyline::validate::Validator;
use rustyline::{Context, Helper as RlHelper, Result};
@@ -93,7 +93,7 @@ impl Highlighter for Helper {
self.highlighter.highlight(line, pos)
}
fn highlight_char(&self, line: &str, pos: usize, forced: bool) -> bool {
fn highlight_char(&self, line: &str, pos: usize, forced: CmdKind) -> bool {
self.highlighter.highlight_char(line, pos, forced)
}
}