summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorWuzzy <almikes@aol.com>2016-12-14 15:57:52 +0100
committerWuzzy <almikes@aol.com>2016-12-14 15:57:52 +0100
commit0d423d2970a71f99991068ac543d5a86c0b91503 (patch)
tree2d52af62dd3d79efa7f24696a8e736ce3e52ce48 /init.lua
parentd258ee39834a90792e4f89aea7696c4a3479520d (diff)
Reduce default text widget width
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 621e454..25b54d1 100644
--- a/init.lua
+++ b/init.lua
@@ -422,7 +422,7 @@ doc.entry_builders = {}
-- into spaces
local linebreaker_single = function(text, linelength)
if linelength == nil then
- linelength = 80
+ linelength = 77
end
local remain = linelength
local res = {}
@@ -518,7 +518,7 @@ doc.widgets.text = function(data, x, y, width, height)
if height == nil then
height = doc.FORMSPEC.ENTRY_HEIGHT
end
- local baselength = 80
+ local baselength = 77
local widget_basewidth = doc.FORMSPEC.WIDTH
local linelength = math.max(20, math.floor(baselength * (width / widget_basewidth)))