fix an embarrassing typo that causes instant prompt to get slower over time (fixes #608)
parent
dfc98adb5c
commit
9e5ab2ce95
|
@ -5863,7 +5863,7 @@ _p9k_dump_instant_prompt() {
|
||||||
|
|
||||||
local tmp=$prompt_file.tmp.$$
|
local tmp=$prompt_file.tmp.$$
|
||||||
zf_mv -f -- $prompt_file $tmp 2>/dev/null
|
zf_mv -f -- $prompt_file $tmp 2>/dev/null
|
||||||
if [[ "$(<$prompt_file)" == *$'\x1e'$_p9k__instant_prompt_sig$'\x1f'* ]] 2>/dev/null; then
|
if [[ "$(<$tmp)" == *$'\x1e'$_p9k__instant_prompt_sig$'\x1f'* ]] 2>/dev/null; then
|
||||||
echo -n >$tmp || return
|
echo -n >$tmp || return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue