about summary refs log tree commit diff stats
path: root/source_edit.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2023-04-01 16:38:22 -0700
committerKartik K. Agaram <vc@akkartik.com>2023-04-01 18:12:29 -0700
commitf64f680f2b4361cece5e8746a870f986473ca502 (patch)
treef9187930631d93aff59ad9884a4482f43dc41223 /source_edit.lua
parent876d6298b40fc8b00bf559d4ec2d909ab1e6bc80 (diff)
downloadlines.love-f64f680f2b4361cece5e8746a870f986473ca502.tar.gz
no more Text allocations
Is it just my imagination, or does the app feel lighter and more fluffy?
Diffstat (limited to 'source_edit.lua')
-rw-r--r--source_edit.lua1
1 files changed, 0 insertions, 1 deletions
diff --git a/source_edit.lua b/source_edit.lua
index de3ddd2..99c2fcb 100644
--- a/source_edit.lua
+++ b/source_edit.lua
@@ -88,7 +88,6 @@ function edit.initialize_state(top, left, right, font_height, line_height)  -- c
 
     font_height = font_height,
     line_height = line_height,
-    em = App.newText(love.graphics.getFont(), 'm'),  -- widest possible character width
 
     top = top,
     left = math.floor(left),