mirror of
https://github.com/rm-dr/daisy
synced 2025-02-21 22:49:24 -08:00
Fixed a minor bug
This commit is contained in:
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…
x
Reference in New Issue
Block a user