fix an embarrassing typo that causes instant prompt to get slower over time (fixes #608)

This commit is contained in:
romkatv 2020-04-04 16:30:39 +02:00
parent dfc98adb5c
commit 9e5ab2ce95

View file

@ -5863,7 +5863,7 @@ _p9k_dump_instant_prompt() {
local tmp=$prompt_file.tmp.$$
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
fi