crap, fix some final changes in the source editor

akkartik
Jun 11, 2024, 6:11 PM
NSM73TX3N6HN6CYVX5LHHWQTHOZITHWIWNOWXZQROBGP6KSDEPBAC

Dependencies

  • [2] 2TCIWW6Z stop caching starty
  • [3] 5SM6DRHK port inscript's bugfix to source editor
  • [4] KKMFQDR4 editing source code from within the app
  • [5] KMSL74GA support selections in the source editor
  • [6] ZS5IYZH5 stop caching screen_bottom1
  • [7] G54H3YG2 get rid of all bifold text
  • [8] CUFW4EJL reorganize app.lua and its comments
  • [*] 3QNOKBFM beginnings of a test harness

Change contents

  • edit in source_text.lua at line 442
    [2.2593]
    [2.2593]
    if State.lines[loc2.line].mode == 'drawing' then
    y = y + Drawing_padding_top
    end
  • replacement in source_text.lua at line 449
    [2.2781][2.2781:2874]()
    y = y + Drawing_padding_height + Drawing.pixels(State.lines[loc2.line].h, State.width)
    [2.2781]
    [2.2874]
    y = y + Drawing.pixels(State.lines[loc2.line].h, State.width) + Drawing_padding_bottom
  • edit in source_text.lua at line 1108
    [3.7723][3.145702:145727](),[3.145702][3.145702:145727]()
    --? print('too low')
  • replacement in source_text.lua at line 1109
    [3.145772][3.145772:145797](),[3.145797][3.5855:5879](),[3.5879][3.7724:7859](),[3.7859][3.6026:6034](),[3.6026][3.6026:6034]()
    --? print('tweak')
    State.cursor1 = {
    line=screen_bottom1.line,
    pos=Text.to_pos_on_line(State, screen_bottom1.line, State.right-5, App.screen.height-5),
    }
    [3.145772]
    [3.145985]
    State.cursor1 = Text.final_text_loc_on_screen(State)
  • replacement in source_select.lua at line 72
    [3.4297][3.4297:4359]()
    if y < State.line_cache[State.screen_top1.line].starty then
    [3.4297]
    [3.4359]
    if y < State.top then
  • replacement in app.lua at line 134
    [3.8755][2.9246:9278]()
    --? test_click_moves_cursor()
    [3.8755]
    [3.842]
    --? test_click_below_all_lines()