Fixed cursor overflow

pull/2/head
Mark 2023-03-29 10:01:05 -07:00
parent a90c00c18d
commit 0049b32670
Signed by: Mark
GPG Key ID: AD62BB059C2AAEE4
1 changed files with 1 additions and 0 deletions

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()); }