Skip to content

Commit

Permalink
reset name on clear
Browse files Browse the repository at this point in the history
  • Loading branch information
LevitatingBusinessMan committed Mar 27, 2023
1 parent cdefe88 commit 4a0b117
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ fn handle_command(state: &mut State, input: &str) {
},
"clear" => {
state.history.clear();
state.name_of_prompt = None;
println!("History cleared");
},
_ => {
Expand Down

0 comments on commit 4a0b117

Please sign in to comment.