mirror of https://github.com/rm-dr/daisy
Fixed a minor bug
parent
3fe51ffaed
commit
8edfb70fb8
|
@ -40,6 +40,10 @@ impl PromptBuffer {
|
|||
self.buffer_changed = false;
|
||||
|
||||
if s != "" { self.hist.push_back(s.clone()); }
|
||||
while self.hist.len() > self.hist_maxlen {
|
||||
self.hist.pop_front();
|
||||
}
|
||||
|
||||
return s;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue