From 8c0f54ee647bd454470d0f0149210e0124b7ffb2 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sun, 5 Jun 2022 07:59:44 -0700 Subject: some typos --- text_tests.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'text_tests.lua') diff --git a/text_tests.lua b/text_tests.lua index f3a2a6a..6982c04 100644 --- a/text_tests.lua +++ b/text_tests.lua @@ -94,7 +94,7 @@ end function test_insert_newline() io.write('\ntest_insert_newline') - -- display a few lines with cursor on bottom line + -- display a few lines App.screen.init{width=25+30, height=60} Lines = load_array{'abc', 'def', 'ghi', 'jkl'} Line_width = App.screen.width @@ -108,7 +108,7 @@ function test_insert_newline() App.screen.check(y, 'def', 'F - test_insert_newline/baseline/screen:2') y = y + Line_height App.screen.check(y, 'ghi', 'F - test_insert_newline/baseline/screen:3') - -- after hitting the enter key the screen scrolls down + -- hitting the enter key splits the line App.run_after_keychord('return') check_eq(Screen_top1.line, 1, 'F - test_insert_newline/screen_top') check_eq(Cursor1.line, 2, 'F - test_insert_newline/cursor:line') -- cgit 1.4.1-2-gfad0