bugfix: clicking on empty lines
[?]
Jul 1, 2022, 7:16 PM
H3ECRBXFBASVUPMZYM5APUK6AR3UF2O6I7BF7KQPV3YHBNT6YZWQCDependencies
- [2]
7NQCCB34. - [3]
6J3NXBYGaffordance to adjust width for word wrap - [4]
7IKRRESBlonger names for indices in long loops - [5]
DLQMM265scroll past first page - [6]
2RXZ3PGObeginning of a new approach to scroll+wrap - [7]
UWNHC4AAredo y computations - [*]
LXTTOB33extract a couple of files - [*]
Y2ZIPXEMnew test - [*]
OTIBCAUJlove2d scaffold
Change contents
- edit in text_tests.lua at line 79
endfunction test_click_with_mouse_on_empty_line()io.write('\ntest_click_with_mouse_on_empty_line')-- display two lines with the first one emptyApp.screen.init{width=50, height=80}Lines = load_array{'', 'def'}Margin_right = 0; Margin_width = Margin_leftCursor1 = {line=2, pos=1}Screen_top1 = {line=1, pos=1}Screen_bottom1 = {}-- click on the empty lineApp.draw()App.run_after_mouse_click(Margin_left+8,Margin_top+5, 1)-- cursor movescheck_eq(Cursor1.line, 1, 'F - test_click_with_mouse_on_empty_line/cursor') - replacement in main.lua at line 242
line.y = yline.starty = yline.startpos = 1