mirror of
https://github.com/rm-dr/daisy
synced 2025-04-10 07:03:24 -07:00
Fixed cursor overflow
This commit is contained in:
parent
a90c00c18d
commit
0049b32670
@ -84,6 +84,7 @@ impl PromptBuffer {
|
|||||||
let s = String::from(self.buffer.trim());
|
let s = String::from(self.buffer.trim());
|
||||||
self.buffer.clear();
|
self.buffer.clear();
|
||||||
self.hist_cursor = 0;
|
self.hist_cursor = 0;
|
||||||
|
self.cursor = 0;
|
||||||
self.buffer_changed = false;
|
self.buffer_changed = false;
|
||||||
|
|
||||||
if s != "" { self.hist.push_back(s.clone()); }
|
if s != "" { self.hist.push_back(s.clone()); }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user