emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] scratch/add-vdiff 9454053 187/258: Use window-text-width instead


From: Justin Burkett
Subject: [elpa] scratch/add-vdiff 9454053 187/258: Use window-text-width instead of window-width
Date: Wed, 17 May 2017 08:13:48 -0400 (EDT)

branch: scratch/add-vdiff
commit 945405330ffb3e397505738efb33cc1f2c1aff14
Author: justbur <address@hidden>
Commit: justbur <address@hidden>

    Use window-text-width instead of window-width
---
 vdiff.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vdiff.el b/vdiff.el
index f0f4f48..3f1613e 100644
--- a/vdiff.el
+++ b/vdiff.el
@@ -794,7 +794,7 @@ of a \"word\"."
 ;; * Add overlays
 
 (defun vdiff--make-subtraction-string (n-lines)
-  (let* ((width (1- (window-width (get-buffer-window (current-buffer)))))
+  (let* ((width (1- (window-text-width (get-buffer-window (current-buffer)))))
          (win-height (window-height (get-buffer-window (current-buffer))))
          (max-lines (floor (* 0.7 win-height)))
          (truncate (> n-lines max-lines))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]