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-20 07:08:28 -0700
committerKartik K. Agaram <vc@akkartik.com>2022-07-20 07:08:28 -0700
commita472d218f21cc0787a9e52c6cb03819b27a247e9 (patch)
treeff9630ea1c8682dd0be955cdec840c65f31e00ee /text_tests.lua
parent7dc47edde8b1a573cdf503db59a0d0c68ae03ad7 (diff)
downloadtext.love-a472d218f21cc0787a9e52c6cb03819b27a247e9.tar.gz
allow Text.nearest_pos_less_than to return 0
This eliminates another case of overflowing margins.
Diffstat (limited to 'text_tests.lua')
-rw-r--r--text_tests.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/text_tests.lua b/text_tests.lua
index aaeacc8..837fe3a 100644
--- a/text_tests.lua
+++ b/text_tests.lua
@@ -1044,9 +1044,9 @@ function test_pagedown_can_start_from_middle_of_long_wrapping_line()
   y = Editor_state.top
   App.screen.check(y, 'ghi ', 'F - test_pagedown_can_start_from_middle_of_long_wrapping_line/screen:1')
   y = y + Editor_state.line_height
-  App.screen.check(y, 'jkl m', 'F - test_pagedown_can_start_from_middle_of_long_wrapping_line/screen:2')
+  App.screen.check(y, 'jkl ', 'F - test_pagedown_can_start_from_middle_of_long_wrapping_line/screen:2')
   y = y + Editor_state.line_height
-  App.screen.check(y, 'no ', 'F - test_pagedown_can_start_from_middle_of_long_wrapping_line/screen:3')
+  App.screen.check(y, 'mno ', 'F - test_pagedown_can_start_from_middle_of_long_wrapping_line/screen:3')
 end
 
 function test_down_arrow_moves_cursor()