about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--text_tests.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/text_tests.lua b/text_tests.lua
index fab2e7b..6b92153 100644
--- a/text_tests.lua
+++ b/text_tests.lua
@@ -11,6 +11,18 @@ function test_insert_first_character()
   App.screen.check(y, 'a', 'F - test_insert_first_character/screen:1')
 end
 
+function test_press_ctrl()
+  io.write('\ntest_press_ctrl')
+  -- press ctrl while the cursor is on text
+  App.screen.init{width=50, height=80}
+  Lines = load_array{''}
+  Line_width = App.screen.width
+  Cursor1 = {line=1, pos=1}
+  Screen_top1 = {line=1, pos=1}
+  Screen_bottom1 = {}
+  App.run_after_keychord('C-m')
+end
+
 function test_draw_text()
   io.write('\ntest_draw_text')
   App.screen.init{width=120, height=60}