a15f0f0e9ff17c1ca5c6d694d732e72c7c03a62b

Author
Marc Cornellà <marc.cornella@live.com>
Committer
Marc Cornellà <marc.cornella@live.com>
Date

Message

cli: beauty touches on 'omz pr test' command

Diff

 1diff --git a/lib/cli.zsh b/lib/cli.zsh
 2index e25a9f0b1782b5bb109aeedf1628b7e26c82dc70..73ac5a8463f94d4b3503913cd4dedcdb01337944 100644
 3--- a/lib/cli.zsh
 4+++ b/lib/cli.zsh
 5@@ -181,6 +181,10 @@ function _omz::pr::test {
 6     # After testing, go back to the previous HEAD if the user wants
 7     _omz::log prompt "do you want to go back to the previous branch? [Y/n] "
 8     read -r -k 1
 9+
10+    # If no newline entered, add a newline
11+    [[ "$REPLY" != $'\n' ]] && echo
12+    # If NO selected, do nothing else
13     [[ "$REPLY" = [nN] ]] && return
14 
15     (