branch: scratch/add-vdiff
commit 945405330ffb3e397505738efb33cc1f2c1aff14
Author: justbur <[email protected]>
Commit: justbur <[email protected]>
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))