From 8a19e73250ffe1040a58a93a7349c24555990251 Mon Sep 17 00:00:00 2001 From: Konstantinos Koukopoulos Date: Wed, 16 Oct 2013 19:12:17 +0300 Subject: [PATCH] use more standard ansi+csr escapes. Refs #30 --- pure.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pure.zsh b/pure.zsh index 66c8f24..275224a 100644 --- a/pure.zsh +++ b/pure.zsh @@ -68,7 +68,7 @@ prompt_pure_precmd() { command git rev-parse --abbrev-ref @'{u}' &>/dev/null && (( $(command git rev-list --count HEAD...@'{u}' 2>/dev/null) > 0 )) && # some crazy ansi magic to inject the symbol into the previous line - print -Pn "\e[s\e[A\e[1G\e[`prompt_pure_string_length $prompt_pure_preprompt`C%F{cyan}⇣%f\e[u" + print -Pn "\e7\e[A\e[1G\e[`prompt_pure_string_length $prompt_pure_preprompt`C%F{cyan}⇣%f\e8" } &! # reset value since `preexec` isn't always triggered