branch: elpa/gptel
commit f1cd66a5a9e844058e9f838827524af68cf9dd91
Author: Karthik Chikmagalur <[email protected]>
Commit: Karthik Chikmagalur <[email protected]>

    gptel: Adjust overlay header for tool call prompts
    
    * gptel.el (gptel--display-tool-calls): Graphical and tty Emacs
    don't seem to agree on what the length of a string is, causing the
    right-alignment of the tool call action hints to fail.  Be a
    little conservative when right-aligning it.
---
 gptel.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gptel.el b/gptel.el
index d8bb33e2da6..8f54494bb1a 100644
--- a/gptel.el
+++ b/gptel.el
@@ -1725,7 +1725,7 @@ USE-MINIBUFFER is non-nil)."
             (overlay-put
              prompt-ov 'before-string
              (concat "\n"
-                     (propertize " " 'display `(space :align-to (- right 
,(length actions-string)))
+                     (propertize " " 'display `(space :align-to (- right 
,(length actions-string) 2))
                                  'face '(:inherit font-lock-string-face 
:underline t :extend t))
                      actions-string
                      (format (propertize "\n%s wants to run:\n\n"

Reply via email to