add args to some functions

[?]
Jul 8, 2022, 10:30 PM
4CXVIEBSQ5X62UYNJNSNMYKP24GE4IPO77T5ZWQW24QIK2BUQGWAC

Dependencies

  • [2] CIQN2MDE bugfix: typing a capital letter deletes selection
  • [3] HIKLULFQ extract a function
  • [4] SN2QONLI autosave on cut/paste
  • [5] EMHRPJ3R no, that's not right
  • [6] R22PA3XR fix a second BSOD in #4 :/
  • [7] AVTNUQYR basic test-enabled framework
  • [8] XNFTJHC4 split keyboard handling between Text and Drawing
  • [9] 73OCE2MC after much struggle, a brute-force undo
  • [10] KMRJOSLY bugfix: delete selection before pasting
  • [11] DHI6IJCN selecting text and deleting selections
  • [12] LS55YKGW switch copy/paste to ctrl- hotkeys
  • [13] SQLVYKVJ rename
  • [14] JFFUF5AL override mouse state lookups in tests
  • [15] DRFE3B3Z mouse buttons are integers, not strings
  • [16] JCSLDGAH beginnings of support for multiple shapes
  • [17] 3EMBUWVW what should happen to selection while drawing?
  • [18] Z4XRNDTR find text
  • [19] AYE2VEGJ extract a couple of methods
  • [20] FHSZYAZ2 more precise search highlighting
  • [21] LXTTOB33 extract a couple of files
  • [22] 7EQLPB3O bugfix: don't delete selection when moving cursor
  • [23] 65XHTZEK regression: couldn't do many drawing operations because line.y was reset
  • [24] OP643FFG move
  • [25] PX7DDEMO autosave slightly less aggressively
  • [26] EMRPLZPW drop an arg from a function
  • [27] YW5324Q3 bugfix: cut (C-x) without first selecting anything
  • [28] 4J2L6JMR bugfix: deleting a selection spanning pages
  • [*] BULPIBEG beginnings of a module for the text editor
  • [*] OTIBCAUJ love2d scaffold

Change contents

  • replacement in text.lua at line 52
    [3.68][3.68:142]()
    local lo, hi = Text.clip_selection(line_index, pos, pos+frag_len)
    [3.68]
    [3.3]
    local lo, hi = Text.clip_selection(line_index, pos, pos+frag_len, left, right)
  • replacement in text.lua at line 187
    [3.8423][3.8423:8453]()
    Text.delete_selection()
    [3.8423]
    [3.45]
    Text.delete_selection(Margin_left, App.screen.width-Margin_right)
  • replacement in text.lua at line 228
    [3.8503][3.8503:8533]()
    Text.delete_selection()
    [3.8503]
    [3.89]
    Text.delete_selection(Margin_left, App.screen.width-Margin_right)
  • replacement in select.lua at line 11
    [3.44455][3.44455:44508]()
    function Text.clip_selection(line_index, apos, bpos)
    [3.44455]
    [3.44508]
    function Text.clip_selection(line_index, apos, bpos, left, right)
  • replacement in select.lua at line 17
    [3.1213][3.44704:44737](),[3.1281][3.44704:44737](),[3.44704][3.44704:44737]()
    maxl,maxp = Text.mouse_pos()
    [3.1213]
    [3.44737]
    maxl,maxp = Text.mouse_pos(left, right)
  • replacement in select.lua at line 81
    [3.45876][3.45876:45902]()
    function Text.mouse_pos()
    [3.45876]
    [3.45902]
    function Text.mouse_pos(left, right)
  • replacement in select.lua at line 87
    [3.46079][3.1282:1343]()
    local line,pos = Text.to_pos(App.mouse_x(), App.mouse_y())
    [3.46079]
    [3.46148]
    local line,pos = Text.to_pos(App.mouse_x(), App.mouse_y(), left, right)
  • replacement in select.lua at line 95
    [3.46275][3.46275:46301]()
    function Text.to_pos(x,y)
    [3.46275]
    [3.46301]
    function Text.to_pos(x,y, left, right)
  • replacement in select.lua at line 105
    [3.10][3.10:40]()
    function Text.cut_selection()
    [3.10]
    [3.5]
    function Text.cut_selection(left, right)
  • replacement in select.lua at line 108
    [3.74][3.74:100]()
    Text.delete_selection()
    [3.74]
    [3.100]
    Text.delete_selection(left, right)
  • replacement in select.lua at line 112
    [3.46500][3.46500:46533]()
    function Text.delete_selection()
    [3.46500]
    [3.50]
    function Text.delete_selection(left, right)
  • replacement in select.lua at line 116
    [3.46629][3.46629:46668]()
    Text.delete_selection_without_undo()
    [3.46629]
    [3.46668]
    Text.delete_selection_without_undo(left, right)
  • replacement in select.lua at line 120
    [3.46740][3.46740:46786]()
    function Text.delete_selection_without_undo()
    [3.46740]
    [3.46786]
    function Text.delete_selection_without_undo(left, right)
  • replacement in main.lua at line 437
    [3.886][3.1288:1316](),[2.1225][3.1288:1316](),[3.1288][3.1288:1316]()
    Text.delete_selection()
    [2.1225]
    [3.1316]
    Text.delete_selection(Margin_left, App.screen.width-Margin_right)
  • replacement in main.lua at line 509
    [3.345][3.202:237](),[3.202][3.202:237]()
    local s = Text.cut_selection()
    [3.345]
    [3.237]
    local s = Text.cut_selection(Margin_left, App.screen.width-Margin_right)