bugfix

akkartik
Dec 29, 2023, 7:54 PM
ZMBPXIZ4KO5NJECJTP4GXFMWNROKNHVIPVEKVXFA73ON45XIBRWQC

Dependencies

  • [2] 5XA7TKWY pull font into editor
  • [3] ZL6DXCQ2 update doc
  • [4] N2NUGNN4 include a brief reference enabling many useful apps
  • [5] 2L5MEZV3 experiment: new edit namespace
  • [6] KKMFQDR4 editing source code from within the app
  • [7] AOZX2G5F source: no commandline args
  • [8] W5WCQNMP bugfix: Windows pushing title bar off screen
  • [9] H5UZI3YN editor documentation
  • [10] 3HHPHDOO couple of typos
  • [11] UZQ2LGHQ bugfix: preserve window position
  • [12] OI4FPFIN support drawings in the source editor
  • [13] CNCYMM6A make test initializations a little more obvious
  • [14] LF7BWEG4 group all editor globals
  • [15] UHB4GARJ left/right margin -> left/right coordinates
  • [16] CWQIPU7U always show line numbers in source editor
  • [17] 5RDWSYK2 consistently use App names for methods everywhere
  • [18] J3I6DVMB drop an unused arg

Change contents

  • replacement in source_edit.lua at line 28
    [4.152846][2.0:115]()
    function edit.initialize_state(top, left, right, font, line_height) -- currently always draws to bottom of screen
    [4.152846]
    [4.152968]
    function edit.initialize_state(top, left, right, font, font_height, line_height) -- currently always draws to bottom of screen
  • edit in source_edit.lua at line 575
    [2.326]
    [4.164521]
    14,
  • replacement in source.lua at line 129
    [4.169468][2.387:537]()
    Editor_state = edit.initialize_state(Margin_top, Margin_left + Line_number_width*App.width('m'), right, font, math.floor(settings.font_height*1.3))
    [4.169468]
    [4.169599]
    Editor_state = edit.initialize_state(Margin_top, Margin_left + Line_number_width*App.width('m'), right, font, font_height, math.floor(settings.font_height*1.3))
  • replacement in source.lua at line 157
    [4.51][2.589:754]()
    Editor_state = edit.initialize_state(Margin_top, Margin_left + Line_number_width*App.width('m'), App.screen.width-Margin_right, font, math.floor(font_height*1.3))
    [4.51]
    [4.115]
    Editor_state = edit.initialize_state(Margin_top, Margin_left + Line_number_width*App.width('m'), App.screen.width-Margin_right, font, font_height, math.floor(font_height*1.3))
  • replacement in run.lua at line 64
    [4.67][2.815:954]()
    Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width-Margin_right, font, math.floor(Settings.font_height*1.3))
    [4.67]
    [4.180163]
    Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width-Margin_right, font, Settings.font_height, math.floor(Settings.font_height*1.3))
  • replacement in run.lua at line 84
    [4.137][2.1006:1136]()
    Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width-Margin_right, font, math.floor(font_height*1.3))
    [4.137]
    [4.180749]
    Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width-Margin_right, font, font_height, math.floor(font_height*1.3))
  • replacement in reference.md at line 193
    [4.164][3.18:92](),[3.92][4.17:93](),[4.245][4.17:93]()
    * `state = edit.initialize_state(top, left, right, font, line_height)` --
    returns an object that can be used to render an interactive editor widget
    [4.164]
    [4.322]
    * `state = edit.initialize_state(top, left, right, font, font_height, line_height)`
    -- returns an object that can be used to render an interactive editor widget
  • replacement in log_browser.lua at line 9
    [4.192175][2.1137:1324]()
    Log_browser_state = edit.initialize_state(Margin_top, Editor_state.right + Margin_right + Margin_left, (Editor_state.right+Margin_right)*2, Editor_state.font, Editor_state.line_height)
    [4.192175]
    [4.192369]
    Log_browser_state = edit.initialize_state(Margin_top, Editor_state.right + Margin_right + Margin_left, (Editor_state.right+Margin_right)*2, Editor_state.font, Editor_state.font_height, Editor_state.line_height)
  • replacement in edit.lua at line 26
    [4.596][2.1325:1440]()
    function edit.initialize_state(top, left, right, font, line_height) -- currently always draws to bottom of screen
    [4.596]
    [4.94319]
    function edit.initialize_state(top, left, right, font, font_height, line_height) -- currently always draws to bottom of screen
  • replacement in edit.lua at line 87
    [2.1458][2.1458:1494]()
    font_height = font:getHeight(),
    [2.1458]
    [4.5251]
    font_height = font_height,
  • edit in edit.lua at line 571
    [2.1651]
    [4.5699]
    14,