summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/init.lua b/init.lua
index 7aa8809..9f67d27 100644
--- a/init.lua
+++ b/init.lua
@@ -40,8 +40,8 @@ doc.FORMSPEC.ENTRY_HEIGHT = doc.FORMSPEC.ENTRY_END_Y - doc.FORMSPEC.ENTRY_START_
local DOC_INTRO = S("This is the help.")
local CATEGORYFIELDSIZE = {
- WIDTH = 4,
- HEIGHT = 8,
+ WIDTH = math.ceil(doc.FORMSPEC.WIDTH / 4),
+ HEIGHT = math.floor(doc.FORMSPEC.HEIGHT-1),
}
doc.data = {}