aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
authorJonas Maier <jonas@x77.dev>2026-05-22 21:59:51 +0200
committerJonas Maier <jonas@x77.dev>2026-05-22 21:59:51 +0200
commit40e64a767a70ea5c04e4ab9fa6dd7ceac0ea882b (patch)
tree73fd4642f1d7b89c8fc3e8df06642ff6bfd3eeb8 /src/lib.rs
parente4132ff564c59be72c6546752077a8f33bb4c00f (diff)
downloadpish-40e64a767a70ea5c04e4ab9fa6dd7ceac0ea882b.tar.gz
syntax highlighting bug fixes
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs4
1 files changed, 3 insertions, 1 deletions
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<Mutex<Self>>) {
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) {