about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--edit.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/edit.lua b/edit.lua
index 147cb09..5714b99 100644
--- a/edit.lua
+++ b/edit.lua
@@ -316,7 +316,7 @@ end
 
 function edit.update_font_settings(State, font_height)
   State.font_height = font_height
-  love.graphics.setFont(love.graphics.newFont(Editor_state.font_height))
+  love.graphics.setFont(love.graphics.newFont(State.font_height))
   State.line_height = math.floor(font_height*1.3)
   State.em = App.newText(love.graphics.getFont(), 'm')
   Text_cache = {}