arg underlining now only affects the last argument

This commit is contained in:
2026-02-19 21:52:29 -05:00
parent 886d348d53
commit e8473e82a1
2 changed files with 26 additions and 17 deletions

View File

@@ -363,7 +363,7 @@ impl FernVi {
let line = self.editor.to_string();
let hint = self.editor.get_hint_text();
if crate::state::read_shopts(|s| s.prompt.highlight) {
self.highlighter.load_input(&line);
self.highlighter.load_input(&line,self.editor.cursor_byte_pos());
self.highlighter.highlight();
let highlighted = self.highlighter.take();
format!("{highlighted}{hint}")