summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/cli.zsh4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/cli.zsh b/lib/cli.zsh
index e25a9f0b1..73ac5a846 100644
--- a/lib/cli.zsh
+++ b/lib/cli.zsh
@@ -181,6 +181,10 @@ function _omz::pr::test {
# After testing, go back to the previous HEAD if the user wants
_omz::log prompt "do you want to go back to the previous branch? [Y/n] "
read -r -k 1
+
+ # If no newline entered, add a newline
+ [[ "$REPLY" != $'\n' ]] && echo
+ # If NO selected, do nothing else
[[ "$REPLY" = [nN] ]] && return
(