Minor cleanup

This commit is contained in:
2023-08-01 09:07:33 -07:00
parent 8059714319
commit 2949b07d7c
6 changed files with 6 additions and 7 deletions

View File

@ -82,7 +82,7 @@ impl PromptBuffer {
// Prompt methods
pub fn get_contents(&self) -> &String {&self.buffer}
pub fn enter(&mut self) -> String{
pub fn enter(&mut self) -> String {
let s = String::from(self.buffer.trim());
self.buffer.clear();
self.hist_cursor = 0;