From 7bf7ab94b6ddf91e95e7400c1141dd5d9e3557fc Mon Sep 17 00:00:00 2001
From: Dominik Ritter <dritter03@googlemail.com>
Date: Fri, 5 Jun 2015 18:56:11 +0200
Subject: Fix for Issue #33. Now the RPROMPT is on the first line.

---
 powerlevel9k.zsh-theme | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index f65143a1..a35292a8 100644
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -470,7 +470,15 @@ precmd() {
 if [[ "$POWERLEVEL9K_PROMPT_ON_NEWLINE" == true ]]; then
   PROMPT='╭─%{%f%b%k%}$(build_left_prompt) 
 ╰─ '
+  # The right prompt should be on the same line as the first line of the left prompt.
+	# To do so, there is just a quite ugly workaround: Before zsh draws the RPROMPT,
+	# we advise it, to go one line up. At the end of RPROMPT, we advise it to go one
+	# line down. See http://superuser.com/questions/357107/zsh-right-justify-in-ps1
+  RPROMPT_PREFIX='%{'$'\e[1A''%}' # one line up
+	RPROMPT_SUFFIX='%{'$'\e[1B''%}' # one line down
 else
   PROMPT='%{%f%b%k%}$(build_left_prompt) '
+	RPROMPT_PREFIX=''
+	RPROMPT_SUFFIX=''
 fi
-RPROMPT='%{%f%b%k%}$(build_right_prompt)%{$reset_color%}'
+RPROMPT=$RPROMPT_PREFIX'%{%f%b%k%}$(build_right_prompt)%{$reset_color%}'$RPROMPT_SUFFIX
-- 
cgit v1.2.3


From 3e41f292236336b8b67d329a6c7d86fc8b072320 Mon Sep 17 00:00:00 2001
From: Dominik Ritter <dritter03@googlemail.com>
Date: Fri, 5 Jun 2015 19:02:07 +0200
Subject: Formatting.

---
 powerlevel9k.zsh-theme | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index a35292a8..df0319c7 100644
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -471,14 +471,14 @@ if [[ "$POWERLEVEL9K_PROMPT_ON_NEWLINE" == true ]]; then
   PROMPT='╭─%{%f%b%k%}$(build_left_prompt) 
 ╰─ '
   # The right prompt should be on the same line as the first line of the left prompt.
-	# To do so, there is just a quite ugly workaround: Before zsh draws the RPROMPT,
-	# we advise it, to go one line up. At the end of RPROMPT, we advise it to go one
-	# line down. See http://superuser.com/questions/357107/zsh-right-justify-in-ps1
+  # To do so, there is just a quite ugly workaround: Before zsh draws the RPROMPT,
+  # we advise it, to go one line up. At the end of RPROMPT, we advise it to go one
+  # line down. See http://superuser.com/questions/357107/zsh-right-justify-in-ps1
   RPROMPT_PREFIX='%{'$'\e[1A''%}' # one line up
-	RPROMPT_SUFFIX='%{'$'\e[1B''%}' # one line down
+  RPROMPT_SUFFIX='%{'$'\e[1B''%}' # one line down
 else
   PROMPT='%{%f%b%k%}$(build_left_prompt) '
-	RPROMPT_PREFIX=''
-	RPROMPT_SUFFIX=''
+  RPROMPT_PREFIX=''
+  RPROMPT_SUFFIX=''
 fi
 RPROMPT=$RPROMPT_PREFIX'%{%f%b%k%}$(build_right_prompt)%{$reset_color%}'$RPROMPT_SUFFIX
-- 
cgit v1.2.3