about summary refs log tree commit diff stats
path: root/text_tests.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-07-16 08:48:02 -0700
committerKartik K. Agaram <vc@akkartik.com>2022-07-16 08:48:02 -0700
commitf61d4269f50fa317f02fc2195baa4bd758aee525 (patch)
tree385bde08a48221d338c2e7df3abedee787836651 /text_tests.lua
parentc26b377ab3455a2c5b90ec0fa34fce11b271bf72 (diff)
downloadtext.love-f61d4269f50fa317f02fc2195baa4bd758aee525.tar.gz
bring back a set of constants
It's starting to sink in that I don't want hard-coded constants inside
objects.
Diffstat (limited to 'text_tests.lua')
-rw-r--r--text_tests.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/text_tests.lua b/text_tests.lua
index d74eb98..0126fef 100644
--- a/text_tests.lua
+++ b/text_tests.lua
@@ -866,7 +866,7 @@ function test_pagedown_skips_drawings()
   Editor_state.cursor1 = {line=1, pos=1}
   Editor_state.screen_top1 = {line=1, pos=1}
   Editor_state.screen_bottom1 = {}
-  local drawing_height = Editor_state.drawing_padding_height + drawing_width/2  -- default
+  local drawing_height = Drawing_padding_height + drawing_width/2  -- default
   -- initially the screen displays the first line and the drawing
   -- 15px margin + 15px line1 + 10px margin + 25px drawing + 10px margin = 75px < screen height 80px
   edit.draw(Editor_state)