Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
With 50ace41 I broke _lp_title as the
TITLE_OPEN/TITLE_CLOSE had content that required expansion (echo -e).
This caused an issue only on zsh because for bash \e in PS1 was
expanded (not in zsh because escape sequences use '%' instead of '\').
The issue is now fixed by using raw bytes in TITLE_OPEN/TITLE_CLOSE.
(Thanks to pkkolos for also noticing the issue and reporting it)
  • Loading branch information
dolmen authored and Panayiotis Kkolos committed Dec 16, 2015
1 parent f309610 commit 2962163
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions liquidprompt
Original file line number Diff line number Diff line change
Expand Up @@ -284,13 +284,13 @@ if [[ "$TERM" == screen* ]]; then
LP_BRACKET_OPEN="${LP_COLOR_IN_MULTIPLEXER}${LP_MARK_BRACKET_OPEN}${NO_COL}"
LP_BRACKET_CLOSE="${LP_COLOR_IN_MULTIPLEXER}${LP_MARK_BRACKET_CLOSE}${NO_COL}"
(( LP_ENABLE_TITLE = LP_ENABLE_TITLE && LP_ENABLE_SCREEN_TITLE ))
LP_TITLE_OPEN="\033k"
LP_TITLE_CLOSE="\033\\"
LP_TITLE_OPEN="$(printf '\033k')"
LP_TITLE_CLOSE="$(printf '\033\\')"
else
LP_BRACKET_OPEN="${LP_MARK_BRACKET_OPEN}"
LP_BRACKET_CLOSE="${LP_MARK_BRACKET_CLOSE}"
LP_TITLE_OPEN="\e]0;"
LP_TITLE_CLOSE="\a"
LP_TITLE_OPEN="$(printf '\e]0;')"
LP_TITLE_CLOSE="$(printf '\a')"
fi

[[ "_$TERM" == _linux* ]] && LP_ENABLE_TITLE=0
Expand Down

0 comments on commit 2962163

Please sign in to comment.