mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-22 12:20:07 +00:00
fix an embarrassing typo that causes instant prompt to get slower over time (fixes #608)
This commit is contained in:
parent
dfc98adb5c
commit
9e5ab2ce95
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue