[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master e2f2f6b9e8: Fix percentage width computation in vtable
From: |
Lars Ingebrigtsen |
Subject: |
master e2f2f6b9e8: Fix percentage width computation in vtable |
Date: |
Mon, 26 Sep 2022 07:29:07 -0400 (EDT) |
branch: master
commit e2f2f6b9e869e8cf2714b35d5645fbbbcf2975de
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>
Fix percentage width computation in vtable
* lisp/emacs-lisp/vtable.el (vtable--compute-width): Fix
percentage computation (bug#58067).
---
lisp/emacs-lisp/vtable.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lisp/emacs-lisp/vtable.el b/lisp/emacs-lisp/vtable.el
index 61265c97c2..9bdf90bf1d 100644
--- a/lisp/emacs-lisp/vtable.el
+++ b/lisp/emacs-lisp/vtable.el
@@ -770,7 +770,8 @@ If NEXT, do the next column."
((string-match "\\([0-9.]+\\)px" spec)
(string-to-number (match-string 1 spec)))
((string-match "\\([0-9.]+\\)%" spec)
- (* (string-to-number (match-string 1 spec)) (window-width nil t)))
+ (/ (* (string-to-number (match-string 1 spec)) (window-width nil t))
+ 100))
(t
(error "Invalid spec: %s" spec))))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master e2f2f6b9e8: Fix percentage width computation in vtable,
Lars Ingebrigtsen <=