Skip to content

Commit 9e0ad95

Browse files
committed
Fix spaces in view diff tool call
1 parent 8dd47f8 commit 9e0ad95

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

eca-chat.el

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1707,7 +1707,7 @@ string."
17071707
(diff (plist-get details :diff))
17081708
(view-diff-btn (eca-buttonize
17091709
eca-chat-mode-map
1710-
(propertize "view_diff" 'font-lock-face 'eca-chat-diff-view-face)
1710+
(propertize "view diff" 'font-lock-face 'eca-chat-diff-view-face)
17111711
(lambda ()
17121712
(interactive)
17131713
(eca-chat--show-diff path diff)))))
@@ -1718,7 +1718,7 @@ string."
17181718
(eca-chat--file-change-details-label details)
17191719
" " status
17201720
"\n"
1721-
view-diff-btn
1721+
(propertize view-diff-btn 'line-prefix tool-call-next-line-spacing)
17221722
approval-text)
17231723
(concat "Tool: `" name "`\n"
17241724
(eca-chat--file-change-diff path diff roots))))
@@ -1750,10 +1750,10 @@ string."
17501750
(view-diff-btn
17511751
(eca-buttonize
17521752
eca-chat-mode-map
1753-
(propertize "view_diff" 'font-lock-face 'eca-chat-diff-view-face)
1754-
`(lambda ()
1755-
(interactive)
1756-
(eca-chat--show-diff ,path ,diff)))))
1753+
(propertize "view diff" 'font-lock-face 'eca-chat-diff-view-face)
1754+
(lambda ()
1755+
(interactive)
1756+
(eca-chat--show-diff path diff)))))
17571757
(eca-chat--update-expandable-content
17581758
id
17591759
(concat (propertize summary 'font-lock-face 'eca-chat-mcp-tool-call-label-face)
@@ -1799,10 +1799,10 @@ string."
17991799
(view-diff-btn
18001800
(eca-buttonize
18011801
eca-chat-mode-map
1802-
(propertize "view_diff" 'font-lock-face 'eca-chat-diff-view-face)
1803-
`(lambda ()
1804-
(interactive)
1805-
(eca-chat--show-diff ,path ,diff)))))
1802+
(propertize "view diff" 'font-lock-face 'eca-chat-diff-view-face)
1803+
(lambda ()
1804+
(interactive)
1805+
(eca-chat--show-diff path diff)))))
18061806
(eca-chat--update-expandable-content
18071807
id
18081808
(concat (propertize summary 'font-lock-face 'eca-chat-mcp-tool-call-label-face)

0 commit comments

Comments
 (0)