commit 50a1a641afb4054fac6996f2d954bfa399d46cec
parent 473d64529c43cb9424e9fc574760a8aa16593449
Author: Lou Woell <lou.woell@posteo.de>
Date:   Fri,  5 Sep 2025 02:17:04 +0200

[haredoc.el] fix hare/root-dir when not in project

Diffstat:
Mharedoc.el | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/haredoc.el b/haredoc.el @@ -38,7 +38,10 @@ (defvar hare/helperbin (concat hare/helperbindir "/harehelper")) (defun hare/root-dir () - (project-root (project-current nil))) + (interactive) + (if-let ((p (project-current nil))) + (project-root p) + ".")) (defun hh/exec (strings) (let ((res (shell-command-to-string (string-join strings " "))))