From f774df6c76c3cf98d7740a00ef63d36e5a5cc0a7 Mon Sep 17 00:00:00 2001
From: Roman Perepelitsa <roman.perepelitsa@gmail.com>
Date: Sat, 22 May 2021 12:19:41 +0200
Subject: pyenv: skip lines that start with "#" (#1376)

---
 internal/p10k.zsh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/internal/p10k.zsh b/internal/p10k.zsh
index 7d2ade70..767aca10 100644
--- a/internal/p10k.zsh
+++ b/internal/p10k.zsh
@@ -4154,7 +4154,7 @@ function _p9k_read_pyenv_like_version_file() {
       [[ -n $fd ]] && exec {fd}>&-
     }
     local MATCH
-    local versions=(${(@)${(f)content}/(#m)*/${MATCH[(w)1]#$2}})
+    local versions=(${${${${(f)content}/(#m)*/${MATCH[(w)1]}}##\#*}#$2})
     _p9k__ret=${(j.:.)versions}
     _p9k__read_pyenv_like_version_file_cache[$1:$2]=$stat[1]:$_p9k__ret
   fi
-- 
cgit v1.2.3