branch: externals/which-key
commit f25457c270fd8890f992e02b8ead8db9a3c9cfe2
Author: Jeremy Bryant <[email protected]>
Commit: Justin Burkett <[email protected]>
Replace wholenump by natnump for context readability
* which-key.el (which-key--width-or-percentage-to-width,
which-key--height-or-percentage-to-height): Use natnump instead of
wholenump.
---
which-key.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/which-key.el b/which-key.el
index 781fee9683..820875bfda 100644
--- a/which-key.el
+++ b/which-key.el
@@ -1170,7 +1170,7 @@ If WIDTH-OR-PERCENTAGE is a whole number, return it
unchanged. Otherwise, it
should be a percentage (a number between 0 and 1) out of the frame's width.
More precisely, it should be a percentage out of the frame's root window's
total width."
- (if (wholenump width-or-percentage)
+ (if (natnump width-or-percentage)
width-or-percentage
(round (* width-or-percentage (window-total-width (frame-root-window))))))
@@ -1180,7 +1180,7 @@ If HEIGHT-OR-PERCENTAGE is a whole number, return it
unchanged. Otherwise, it
should be a percentage (a number between 0 and 1) out of the frame's height.
More precisely, it should be a percentage out of the frame's root window's
total height."
- (if (wholenump height-or-percentage)
+ (if (natnump height-or-percentage)
height-or-percentage
(round (* height-or-percentage (window-total-height
(frame-root-window))))))