projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aca4d7c
)
Fix percentage width computation in vtable
author
Lars Ingebrigtsen
<larsi@gnus.org>
Mon, 26 Sep 2022 11:28:30 +0000
(13:28 +0200)
committer
Lars Ingebrigtsen
<larsi@gnus.org>
Mon, 26 Sep 2022 11:28:30 +0000
(13:28 +0200)
* lisp/emacs-lisp/vtable.el (vtable--compute-width): Fix
percentage computation (bug#58067).
lisp/emacs-lisp/vtable.el
patch
|
blob
|
history
diff --git
a/lisp/emacs-lisp/vtable.el
b/lisp/emacs-lisp/vtable.el
index 61265c97c286884ab111fdad81ee6a2a62ea68e8..9bdf90bf1d68dcf13db1451487d75631f01ccfb3 100644
(file)
--- 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))))