From 40e64a767a70ea5c04e4ab9fa6dd7ceac0ea882b Mon Sep 17 00:00:00 2001 From: Jonas Maier Date: Fri, 22 May 2026 21:59:51 +0200 Subject: syntax highlighting bug fixes --- src/lib.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs index 47dbdf5..3f3daf2 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -222,9 +222,11 @@ impl Session { fn reprint_prompt(this: Arc>) { io::stdout().write_all(&Self::prompt(this.clone())).unwrap(); - let this = this.lock().unwrap(); + let mut this = this.lock().unwrap(); this.line.display_pre(); this.line.display_post(b""); + this.line.mark_dirty(); + this.cohere().unwrap(); } fn display_historic_entry(&mut self) { -- cgit v1.2.3