add args to some functions

[?]
Jul 8, 2022, 10:37 PM
CTJ3IZGSPY4DBHC6OYNL4DZE24MXYQBM3KVJZTQHM5DI5TED5ZLQC

Dependencies

  • [2] EMRPLZPW drop an arg from a function
  • [3] MGOQ5XAV start uppercasing globals
  • [4] 3GFQP6IR stop saving the entire file when modifying drawings
  • [5] CCYSVZA2 bugfix: BSOD in #4.
  • [6] QZH3PQFU .
  • [7] DLQMM265 scroll past first page
  • [8] HYEAFRZ2 split mouse_pressed events between Text and Drawing
  • [9] ZUOL7X6V move
  • [10] LAW2O3NW extract variable Margin_left
  • [11] BOFNXP5G clicking now moves the cursor even on long, wrapped lines
  • [12] R22PA3XR fix a second BSOD in #4 :/
  • [13] RMKMPFT5 fix a corner case when selecting text
  • [14] LXTTOB33 extract a couple of files
  • [15] DXT4QTAH a few more integer coordinates
  • [16] AQQQNDTL yet another bugfix in selection management
  • [17] 4CXVIEBS add args to some functions
  • [18] 3OKKTUT4 up and down arrow now moving by screen line where possible
  • [19] 6E3HVYWF test and App helper for mouse clicks
  • [20] 2ENZW7TV select text using mouse drag
  • [21] OGUV4HSA remove some memory leaks from rendered fragments
  • [22] 242L3OQX bugfix: ensure Cursor_line is always on a text line
  • [23] FYS7TCDW bugfix
  • [24] 2INHXC3K position cursor by clicking on text
  • [25] MYC7XR5Q bugfix: lines that aren't drawn from the start
  • [26] 7IKRRESB longer names for indices in long loops
  • [*] BULPIBEG beginnings of a module for the text editor
  • [*] OTIBCAUJ love2d scaffold

Change contents

  • replacement in text.lua at line 666
    [3.936][2.3:36]()
    function Text.in_line(line, x,y)
    [3.936]
    [3.1014]
    function Text.in_line(line, x,y, left,right)
  • replacement in text.lua at line 668
    [3.1085][3.2342:2385](),[3.433][3.2342:2385]()
    if x < Margin_left then return false end
    [3.1085]
    [3.1086]
    if x < left then return false end
  • replacement in select.lua at line 98
    [3.46375][2.39:77]()
    if Text.in_line(line, x,y) then
    [3.46375]
    [3.46413]
    if Text.in_line(line, x,y, left, right) then
  • replacement in main.lua at line 341
    [3.208][2.81:119]()
    if Text.in_line(line, x,y) then
    [3.208]
    [3.119]
    if Text.in_line(line, x,y, Margin_left, App.screen.width-Margin_right) then
  • replacement in main.lua at line 385
    [3.450][2.120:160]()
    if Text.in_line(line, x,y) then
    [3.450]
    [3.770]
    if Text.in_line(line, x,y, Margin_left, App.screen.width-Margin_right) then