bugfix in source editor
Dependencies
- [2]
656FM555bugfix: clear selection when clicking above or below lines - [3]
G54H3YG2get rid of all bifold text - [4]
ORRSP7FVdeduce test names on failures - [5]
KMSL74GAsupport selections in the source editor - [6]
OI4FPFINsupport drawings in the source editor - [7]
5SM6DRHKport inscript's bugfix to source editor - [8]
KKMFQDR4editing source code from within the app - [*]
KYNGDE2Cconsistent names in a few more places
Change contents
- replacement in source_text_tests.lua at line 19
App.screen.init{width=120, height=60}App.screen.init{width=800, height=600} - edit in source_text.lua at line 686
assert(State.lines[loc1.line].mode == 'text') - edit in source_text.lua at line 700
function Text.final_text_loc_on_screen(State)if State.lines[State.screen_bottom1.line].mode == 'text' thenreturn {line=State.screen_bottom1.line,pos=Text.pos_at_end_of_screen_line(State, State.screen_bottom1),}endlocal loc2 = Text.to2(State, State.screen_bottom1)while true doif State.lines[loc2.line].mode == 'text' then break endassert(loc2.line > 1 or loc2.screen_line > 1 and loc2.screen_pos > 1) -- elsewhere we're making sure there's always at least one text line on screenloc2 = Text.previous_screen_line(State, loc2)endlocal result = Text.to1(State, loc2)result.pos = Text.pos_at_end_of_screen_line(State, result)return resultend - edit in source_edit.lua at line 71
---- On lines that are drawings, pos will be nil. - replacement in source_edit.lua at line 74
cursor1 = {line=1, pos=1}, -- position of cursorcursor1 = {line=1, pos=1}, -- position of cursor; must be on a text line - edit in source_edit.lua at line 195
for _,line_cache in ipairs(State.line_cache) do line_cache.starty = nil end - replacement in source_edit.lua at line 302
State.selection1 = {line=State.screen_bottom1.line,pos=Text.pos_at_end_of_screen_line(State, State.screen_bottom1),}State.selection1 = Text.final_text_loc_on_screen(State) - replacement in source_edit.lua at line 340
State.cursor1.line, State.cursor1.pos = State.screen_bottom1.line, Text.pos_at_end_of_screen_line(State, State.screen_bottom1)State.cursor1 = Text.final_text_loc_on_screen(State) - edit in source_edit.lua at line 603[10.176][3.165173]
edit.draw(State)