bugfix in cursor positioning
Dependencies
- [2]
G54H3YG2get rid of all bifold text - [3]
EKKFWP4Dbugfix: couple of margin-relative computations - [4]
MYC7XR5Qbugfix: lines that aren't drawn from the start - [5]
APYPFFS3call edit rather than App callbacks in tests - [6]
EMHRPJ3Rno, that's not right - [7]
IWYLK45Kclicking to the right of a line within line width - [8]
4VKEE43Zbugfix - [9]
ORRSP7FVdeduce test names on failures - [10]
LF7BWEG4group all editor globals - [11]
GJLOKCYKbugfix: clicking past end of screen line - [12]
KKMFQDR4editing source code from within the app - [13]
KMSL74GAsupport selections in the source editor - [14]
5L7K4GBDclicking to the right of a wrapped line - [15]
UHB4GARJleft/right margin -> left/right coordinates - [16]
ILOA5BYFseparate data structure for each line's cache data - [17]
J6WEC2D6. - [18]
5FW7YOFThighlight selection while dragging - [19]
WZFMGVDTswitch to line index in a function - [20]
M6TH7VSZrip out notion of Line_width - [*]
LXTTOB33extract a couple of files - [*]
BULPIBEGbeginnings of a module for the text editor
Change contents
- replacement in text_tests.lua at line 488
-- cursor moves to end of screen line-- cursor moves to end of screen line (one more than final character shown) - replacement in text_tests.lua at line 490
check_eq(Editor_state.cursor1.pos, 12, 'cursor:pos')check_eq(Editor_state.cursor1.pos, 13, 'cursor:pos') - replacement in text_tests.lua at line 509
-- cursor moves to end of screen line-- cursor moves to end of screen line (one more than final character shown) - replacement in text_tests.lua at line 511
check_eq(Editor_state.cursor1.pos, 12, 'cursor:pos')check_eq(Editor_state.cursor1.pos, 13, 'cursor:pos') - replacement in text_tests.lua at line 579[3.301]→[3.803:843](∅→∅),[3.1547]→[3.803:843](∅→∅),[3.803]→[3.803:843](∅→∅),[3.843]→[3.4362:4413](∅→∅)
-- cursor moves to end of screen linecheck_eq(Editor_state.cursor1.pos, 20, 'cursor')-- cursor moves to end of screen line (one more than final character shown)check_eq(Editor_state.cursor1.pos, 21, 'cursor') - replacement in text.lua at line 739
return line_cache.screen_line_starting_pos[screen_line_index+1]-1return line_cache.screen_line_starting_pos[screen_line_index+1] - replacement in source_text_tests.lua at line 488
-- cursor moves to end of screen line-- cursor moves to end of screen line (one more than final character shown) - replacement in source_text_tests.lua at line 490
check_eq(Editor_state.cursor1.pos, 12, 'cursor:pos')check_eq(Editor_state.cursor1.pos, 13, 'cursor:pos') - replacement in source_text_tests.lua at line 509
-- cursor moves to end of screen line-- cursor moves to end of screen line (one more than final character shown) - replacement in source_text_tests.lua at line 511
check_eq(Editor_state.cursor1.pos, 12, 'cursor:pos')check_eq(Editor_state.cursor1.pos, 13, 'cursor:pos') - replacement in source_text_tests.lua at line 579
-- cursor moves to end of screen linecheck_eq(Editor_state.cursor1.pos, 20, 'cursor')-- cursor moves to end of screen line (one more than final character shown)check_eq(Editor_state.cursor1.pos, 21, 'cursor') - replacement in source_text.lua at line 801
return line_cache.screen_line_starting_pos[screen_line_index+1]-1return line_cache.screen_line_starting_pos[screen_line_index+1]