From f99cefc5ec30064111fb21df8ae32151fd0f33ca Mon Sep 17 00:00:00 2001
From: romkatv <roman.perepelitsa@gmail.com>
Date: Sat, 8 Jun 2019 23:27:56 +0200
Subject: attempt to fix a weird todo corner case. unlikely to help

---
 internal/p10k.zsh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/internal/p10k.zsh b/internal/p10k.zsh
index 5455723e..4175a414 100755
--- a/internal/p10k.zsh
+++ b/internal/p10k.zsh
@@ -1571,10 +1571,10 @@ prompt_todo() {
     local script="
       function dirname() {
         local f=\$1
-        [[ \"\$f\" == bash ]] && f=${(Q)commands[todo.sh]}
+        [[ \"\$f\" == bash ]] && f=${(qqq)todo}
         command dirname \"\$f\"
       }
-      source todo.sh shorthelp &>/dev/null
+      source ${(qqq)todo} shorthelp &>/dev/null
       echo \"\$TODO_FILE\""
     typeset -g _P9K_TODO_FILE=$(bash -c $script)
   fi
-- 
cgit v1.2.3