mirror of https://github.com/rm-dr/daisy
Fixed cursor overflow
parent
a90c00c18d
commit
0049b32670
|
@ -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()); }
|
||||
|
|
Loading…
Reference in New Issue