Add all lines read from a terminal to history.
This commit is contained in:
parent
972b7c0cab
commit
aa164087fa
@ -358,6 +358,9 @@ impl LineState {
|
|||||||
self.move_cursor(-100000)?;
|
self.move_cursor(-100000)?;
|
||||||
self.clear_and_render(term)?;
|
self.clear_and_render(term)?;
|
||||||
|
|
||||||
|
// Add to history...
|
||||||
|
self.history.entries.push_front(line.clone());
|
||||||
|
|
||||||
// Return line
|
// Return line
|
||||||
return Ok(Some(ReadlineEvent::Line(line)));
|
return Ok(Some(ReadlineEvent::Line(line)));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user