add args to some functions

[?]
Jul 8, 2022, 10:45 PM
K4OBZSHEBIZBAKPH3F7ASDGCPLB7D5W5QLFJQYSM5XOYDPB4BUHAC

Dependencies

  • [2] CTJ3IZGS add args to some functions
  • [3] QLTJG7Q3 indent
  • [4] FYS7TCDW bugfix
  • [5] M6TH7VSZ rip out notion of Line_width
  • [6] U52E2XZN fix a crash
  • [7] 5FW7YOFT highlight selection while dragging
  • [8] 4VKEE43Z bugfix
  • [9] R22PA3XR fix a second BSOD in #4 :/
  • [10] LXTTOB33 extract a couple of files
  • [11] OP643FFG move
  • [12] RMKMPFT5 fix a corner case when selecting text
  • [13] 5DOTWNVM right margin
  • [14] WOXIYUTL bugfix: manage screen_top and cursor when resizing
  • [15] EMRPLZPW drop an arg from a function
  • [16] J5IEBT64 enforce press/release state only processed once
  • [17] HYEAFRZ2 split mouse_pressed events between Text and Drawing
  • [18] BOFNXP5G clicking now moves the cursor even on long, wrapped lines
  • [19] CBPV5SSI stop handling nil screen_line_starting_pos everywhere
  • [*] BULPIBEG beginnings of a module for the text editor
  • [*] OTIBCAUJ love2d scaffold

Change contents

  • replacement in text.lua at line 675
    [4.1150][4.1150:1193](),[4.1193][4.4453:4536]()
    function Text.to_pos_on_line(line, mx, my)
    --? print('Text.to_pos_on_line', mx, my, 'width', App.screen.width-Margin_right)
    [4.1150]
    [4.3]
    function Text.to_pos_on_line(line, mx, my, left, right)
  • replacement in text.lua at line 950
    [3.57][3.57:139]()
    pos=Text.to_pos_on_line(line, App.screen.width-5, App.screen.height-5),
    [3.57]
    [3.139]
    pos=Text.to_pos_on_line(line, App.screen.width-5, App.screen.height-5, left, right),
  • replacement in select.lua at line 99
    [4.54][4.46413:46471](),[4.77][4.46413:46471](),[2.139][4.46413:46471](),[4.46413][4.46413:46471]()
    return line_index, Text.to_pos_on_line(line, x,y)
    [2.139]
    [4.46471]
    return line_index, Text.to_pos_on_line(line, x,y, left, right)
  • replacement in main.lua at line 356
    [3.205][3.205:254]()
    pos=Text.to_pos_on_line(line, x, y),
    [3.205]
    [3.254]
    pos=Text.to_pos_on_line(line, x, y, Margin_left, App.screen.width-Margin_right),
  • replacement in main.lua at line 392
    [3.318][3.318:369]()
    pos=Text.to_pos_on_line(line, x, y),
    [3.318]
    [3.369]
    pos=Text.to_pos_on_line(line, x, y, Margin_left, App.screen.width-Margin_right),