1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-11-26 05:50:07 +00:00

bug fix: don't cache range and nnn segments as their content is not static

This commit is contained in:
romkatv 2020-01-30 08:29:20 +01:00
parent 73878f398a
commit 1f2251b799

View file

@ -4234,9 +4234,7 @@ _p9k_prompt_nordvpn_init() {
} }
function prompt_ranger() { function prompt_ranger() {
local -i len=$#_p9k__prompt
_p9k_prompt_segment $0 $_p9k_color1 yellow RANGER_ICON 0 '' $RANGER_LEVEL _p9k_prompt_segment $0 $_p9k_color1 yellow RANGER_ICON 0 '' $RANGER_LEVEL
typeset -g "_p9k__segment_val_${_p9k_prompt_side}[_p9k_segment_index]"=$_p9k__prompt[len+1,-1]
} }
_p9k_prompt_ranger_init() { _p9k_prompt_ranger_init() {
@ -4262,9 +4260,7 @@ function instant_prompt_midnight_commander() {
} }
function prompt_nnn() { function prompt_nnn() {
local -i len=$#_p9k__prompt
_p9k_prompt_segment $0 6 $_p9k_color1 NNN_ICON 0 '' $NNNLVL _p9k_prompt_segment $0 6 $_p9k_color1 NNN_ICON 0 '' $NNNLVL
typeset -g "_p9k__segment_val_${_p9k_prompt_side}[_p9k_segment_index]"=$_p9k__prompt[len+1,-1]
} }
_p9k_prompt_nnn_init() { _p9k_prompt_nnn_init() {