From a15f0f0e9ff17c1ca5c6d694d732e72c7c03a62b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Cornell=C3=A0?= Date: Fri, 3 Jul 2020 19:05:40 +0200 Subject: [PATCH] cli: beauty touches on 'omz pr test' command --- lib/cli.zsh | 4 ++++ 1 file changed, 4 insertions(+) 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 (