From 4a25d9d236eb23cc4bec01358226558a40d0b428 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89tienne=20Deparis?= Date: Mon, 25 Mar 2013 20:57:46 +0100 Subject: [PATCH] Fix bug in fossil branch management --- liquidprompt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/liquidprompt b/liquidprompt index 85aa3b8..d3df173 100755 --- a/liquidprompt +++ b/liquidprompt @@ -320,7 +320,7 @@ unset _lp_source_config [[ "$LP_ENABLE_BATT" = 1 ]] && { command -v acpi >/dev/null || LP_ENABLE_BATT=0 ; } # Escape the given strings -# Must be used for all strings that may comes from remote sources, +# Must be used for all strings that may comes from remote sources, # like VCS branch names _lp_escape() { @@ -830,7 +830,7 @@ _lp_hg_branch_color() # Changes to commit and commits to push ret="${LP_COLOR_CHANGES}${branch}${NO_COL}(${LP_COLOR_DIFF}$has_lines${NO_COL},${LP_COLOR_COMMITS}$has_commit${NO_COL})${has_untracked}${NO_COL}" else - ret="${LP_COLOR_CHANGES}${branch}${NO_COL}(${LP_COLOR_DIFF}$has_lines${NO_COL})${has_untracked}${NO_COL}" # changes to commit + ret="${LP_COLOR_CHANGES}${branch}${NO_COL}(${LP_COLOR_DIFF}$has_lines${NO_COL})${has_untracked}${NO_COL}" # changes to commit fi fi echo -ne "$ret" @@ -964,7 +964,7 @@ _lp_fossil_branch_color() branch="${LP_COLOR_CHANGES}$branch${NO_COL}$ret${LP_COLOR_CHANGES}$C2A${NO_COL}" fi fi - echo $(_lp_escape "$branch") + echo -ne $branch # $(_lp_escape "$branch") fi }