Skip to content
Unverified Commit 8908e6d7 authored by Nick Glenn's avatar Nick Glenn Committed by GitHub
Browse files

fix(history): fix logic error in prompt for `history -c` (#12500)



Logic error in `history -c` when prompting for confirmation caused history
to be deleted when typing anything but explicitly `n`, `N`, or sending `\n`.
New logic prevents deletion by pressing wrong key and only deletes
history when sending `y` or `Y`.

Co-authored-by: default avatarSargates <nicholas.g.glenn@gmail.com>
parent 6c021fd4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment