branch: elpa/diff-ansi commit 1cbe994290679cbc4f8964849b86a23440d96f75 Author: Campbell Barton <ideasma...@gmail.com> Commit: Campbell Barton <ideasma...@gmail.com>
Fix non-functional width for "ydiff" The width was always passed in as zero which then defaulted to 80. --- changelog.rst | 3 ++- diff-ansi.el | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/changelog.rst b/changelog.rst index a80bc89e0f..fc7a421daa 100644 --- a/changelog.rst +++ b/changelog.rst @@ -3,8 +3,9 @@ Change Log ########## -- Development (2023-05-02) +- Development (2024-08-19) + - Fix ``ydiff`` defaulting to 80 column width. - Fix an error, attempting to use a closed buffer when ``diff-ansi-method`` is set to ``'progressive``. - Version 0.2 (2022-07-08) diff --git a/diff-ansi.el b/diff-ansi.el index 96ddb424e3..3e393f98fe 100644 --- a/diff-ansi.el +++ b/diff-ansi.el @@ -627,7 +627,7 @@ Optional keywords in KEYWORDS. (append (list "ydiff" "--color=always" - (format "--width=%d" (/ (window-body-width (get-buffer-window (current-buffer)) 2)))) + (format "--width=%d" (/ (window-body-width (get-buffer-window (current-buffer))) 2))) diff-ansi-extra-args-for-ydiff)) ('custom diff-ansi-tool-custom) (_ (error "Unknown tool %S" diff-ansi-tool))))