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

pull/450/head
romkatv 5 years ago
parent 73878f398a
commit 1f2251b799

@ -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() {

Loading…
Cancel
Save