branch: elpa/aidermacs
commit ba490d8a1993db5191783db6cb602a375590c8d5
Author: Mingde (Matthew) Zeng <matthew...@posteo.net>
Commit: Mingde (Matthew) Zeng <matthew...@posteo.net>

    Fix aidermacs-get-buffer-name mismatching dirnames
    
    Signed-off-by: Mingde (Matthew) Zeng <matthew...@posteo.net>
---
 aidermacs-models.el | 2 +-
 aidermacs.el        | 4 +++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/aidermacs-models.el b/aidermacs-models.el
index ec24e2c730..f588c273d3 100644
--- a/aidermacs-models.el
+++ b/aidermacs-models.el
@@ -226,7 +226,7 @@ This is useful when available models have changed."
 
 (defun aidermacs-change-model (&optional arg)
   "Interactively select and change AI model in current aidermacs session.
-   With prefix ARG, only allow setting the weak model."
+With prefix ARG, only allow setting the weak model."
   (interactive "P")
   (unless aidermacs--cached-models
     (aidermacs--get-available-models))
diff --git a/aidermacs.el b/aidermacs.el
index b4f02faebd..2db15829e6 100644
--- a/aidermacs.el
+++ b/aidermacs.el
@@ -236,7 +236,9 @@ If supplied, SUFFIX is appended to the buffer name within 
the earmuffs."
               (cl-remove-if-not
                (lambda (dir-info)
                  (and (car dir-info)
-                      (string-prefix-p (car dir-info) default-directory)
+                      (string-prefix-p
+                       (expand-file-name (car dir-info))
+                       (expand-file-name default-directory))
                       (file-exists-p (car dir-info))))
                buffer-dirs)
               (lambda (a b)

Reply via email to