diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2024-06-11 10:49:56 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2024-06-11 10:49:56 -0700 |
commit | 7aa43d1d2dd57792c447ba40cdf05791e3301123 (patch) | |
tree | 9103129ec5decd7ccce2d8258d81c9d1f0fccc5e | |
parent | 85b09772bae914482f1e50c214091120f5225081 (diff) | |
download | view.love-7aa43d1d2dd57792c447ba40cdf05791e3301123.tar.gz |
comment
-rw-r--r-- | text_tests.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/text_tests.lua b/text_tests.lua index 9e42088..9b34a24 100644 --- a/text_tests.lua +++ b/text_tests.lua @@ -255,7 +255,7 @@ function test_click_moves_cursor() Editor_state.cursor1 = {line=1, pos=1} Editor_state.screen_top1 = {line=1, pos=1} Editor_state.selection1 = {} - edit.draw(Editor_state) -- populate line_cache.startpos for each line Editor_state.line_cache + edit.draw(Editor_state) -- populate line_cache.startpos for each line edit.run_after_mouse_release(Editor_state, Editor_state.left+8,Editor_state.top+5, 1) check_eq(Editor_state.cursor1.line, 1, 'cursor:line') check_eq(Editor_state.cursor1.pos, 2, 'cursor:pos') @@ -812,7 +812,7 @@ function test_select_text_using_mouse() Editor_state.cursor1 = {line=1, pos=1} Editor_state.screen_top1 = {line=1, pos=1} Editor_state.selection1 = {} - edit.draw(Editor_state) -- populate line_cache.startpos for each line Editor_state.line_cache + edit.draw(Editor_state) -- populate line_cache.startpos for each line -- press and hold on first location edit.run_after_mouse_press(Editor_state, Editor_state.left+8,Editor_state.top+5, 1) -- drag and release somewhere else |