re-implemented command history and hinting

This commit is contained in:
2025-06-08 01:53:13 -04:00
parent 80eb8d278a
commit 2c14e4c202
7 changed files with 583 additions and 34 deletions

View File

@@ -669,7 +669,7 @@ impl LineWriter for TermWriter {
let cursor = new_layout.cursor;
self.buffer.push_str(prompt);
self.buffer.push_str(line.as_str());
self.buffer.push_str(&line.to_string());
if end.col == 0 && end.row > 0 && !self.buffer.ends_with('\n') {
// The line has wrapped. We need to use our own line break.