Fixed cursor overflow

This commit is contained in:
2023-03-29 10:01:05 -07:00
parent a90c00c18d
commit 0049b32670

View File

@ -84,6 +84,7 @@ impl PromptBuffer {
let s = String::from(self.buffer.trim());
self.buffer.clear();
self.hist_cursor = 0;
self.cursor = 0;
self.buffer_changed = false;
if s != "" { self.hist.push_back(s.clone()); }