mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-22 12:20:07 +00:00
fix POWERLEVEL9K_DIR_HYPERLINK=true with POWERLEVEL9K_SHORTEN_STRATEGY=truncate_from_right
fixes #420
This commit is contained in:
parent
8a9e879164
commit
a0f3d94dd6
1 changed files with 7 additions and 7 deletions
|
@ -1657,15 +1657,15 @@ prompt_dir() {
|
||||||
|
|
||||||
local content="${(pj.$sep.)parts}"
|
local content="${(pj.$sep.)parts}"
|
||||||
if (( _POWERLEVEL9K_DIR_HYPERLINK )); then
|
if (( _POWERLEVEL9K_DIR_HYPERLINK )); then
|
||||||
local pref=$'%{\e]8;;file://'${${_p9k_pwd//\%/%%25}//'#'/%%23}$'\a%}'
|
local header=$'%{\e]8;;file://'${${_p9k_pwd//\%/%%25}//'#'/%%23}$'\a%}'
|
||||||
local suf=$'%{\e]8;;\a%}'
|
local footer=$'%{\e]8;;\a%}'
|
||||||
if (( expand )); then
|
if (( expand )); then
|
||||||
_p9k_escape $pref
|
_p9k_escape $header
|
||||||
pref=$_p9k_ret
|
header=$_p9k_ret
|
||||||
_p9k_escape $suf
|
_p9k_escape $footer
|
||||||
suf=$_p9k_ret
|
footer=$_p9k_ret
|
||||||
fi
|
fi
|
||||||
content=$pref$content$suf
|
content=$header$content$footer
|
||||||
fi
|
fi
|
||||||
|
|
||||||
(( expand )) && _p9k_prompt_length "${(e):-"\${\${_p9k_d::=0}+}$content"}" || _p9k_ret=
|
(( expand )) && _p9k_prompt_length "${(e):-"\${\${_p9k_d::=0}+}$content"}" || _p9k_ret=
|
||||||
|
|
Loading…
Reference in a new issue