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

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

[elpa] scratch/add-vdiff 816fe2a 182/258: Fix subtraction string width


From: Justin Burkett
Subject: [elpa] scratch/add-vdiff 816fe2a 182/258: Fix subtraction string width
Date: Wed, 17 May 2017 08:13:47 -0400 (EDT)

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

    Fix subtraction string width
---
 vdiff.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/vdiff.el b/vdiff.el
index 2ceba26..2f15b17 100644
--- a/vdiff.el
+++ b/vdiff.el
@@ -793,8 +793,8 @@ of a \"word\"."
 ;; * Add overlays
 
 (defun vdiff--make-subtraction-string (n-lines)
-  (let* ((width (1- (window-width)))
-         (win-height (window-height))
+  (let* ((width (1- (window-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))
          (trunc-n-lines



reply via email to

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