add args to some functions

[?]
Jul 8, 2022, 11:28 PM
UV4EWOLYCQ27TL6IGGLKNQX3UUOF7HJ5EJVCZYW345X6BK4J7YQAC

Dependencies

  • [2] 5DOTWNVM right margin
  • [3] 2TQR4PSY add args to some functions
  • [4] GGJEDJOO add args to some functions
  • [5] QCQTMUZ7 add args to some functions
  • [6] 3OKKTUT4 up and down arrow now moving by screen line where possible
  • [7] 2H67P75X switch arg for a function
  • [8] 2CH77LZC add args to some functions
  • [9] CBPV5SSI stop handling nil screen_line_starting_pos everywhere
  • [10] PIEDOKYQ bugfix
  • [11] 2ZYV7D3W handle tab characters
  • [12] H2DPLWMV snapshot: wrapping long lines at word boundaries
  • [13] R53OF3ON one bug I've repeatedly run into while testing with Moby Dick
  • [14] PR4KIAZD first stab at equally hacky cursor down support
  • [15] IRCKL6VN extract scrolling logic out of insert_at_cursor
  • [16] WOXIYUTL bugfix: manage screen_top and cursor when resizing
  • [17] SVJZZDC3 snapshot - no, that's all wrong
  • [18] BULPIBEG beginnings of a module for the text editor
  • [19] HOSPP2AN crisp font rendering
  • [20] LERERVPH keep one screen line of overlap on pagedown
  • [21] CCYSVZA2 bugfix: BSOD in #4.
  • [22] EGH7XDBK support non-text lines in Text.to2
  • [23] P66MRF3U bugfix: don't append metadata when it already exists
  • [24] AYE2VEGJ extract a couple of methods
  • [25] HYEAFRZ2 split mouse_pressed events between Text and Drawing
  • [26] 2RXZ3PGO beginning of a new approach to scroll+wrap
  • [27] JY4VK7L2 rename
  • [28] V5MJRFOZ bugfix: down arrow doesn't scroll up unnecessarily
  • [29] GCEF4N3V stop repeatedly checking for line wrapping
  • [30] 242L3OQX bugfix: ensure Cursor_line is always on a text line
  • [31] MYC7XR5Q bugfix: lines that aren't drawn from the start
  • [32] LAW2O3NW extract variable Margin_left
  • [33] M6TH7VSZ rip out notion of Line_width
  • [34] CTJ3IZGS add args to some functions
  • [35] KZ5GAYRP this fixes the immediate regression
  • [36] OYXDYPGS get rid of debug variables
  • [37] ESETRNLB bugfix: printing the first part of a line at the bottom made it seem non-wrapping
  • [38] ZPUQSPQP extract a few methods
  • [39] 4VKEE43Z bugfix

Change contents

  • replacement in text.lua at line 25
    [6.109][6.3:50]()
    Text.populate_screen_line_starting_pos(line)
    [6.109]
    [6.1]
    Text.populate_screen_line_starting_pos(line, left, right)
  • replacement in text.lua at line 146
    [6.173][6.51:115]()
    Text.populate_screen_line_starting_pos(Lines[Cursor1.line])
    [6.173]
    [5.3]
    Text.populate_screen_line_starting_pos(Lines[Cursor1.line], Margin_left, App.screen.width-Margin_right)
  • replacement in text.lua at line 179
    [6.577][6.116:182]()
    Text.populate_screen_line_starting_pos(Lines[Cursor1.line])
    [6.577]
    [5.177]
    Text.populate_screen_line_starting_pos(Lines[Cursor1.line], Margin_left, App.screen.width-Margin_right)
  • replacement in text.lua at line 418
    [6.696][6.183:251]()
    Text.populate_screen_line_starting_pos(Lines[Cursor1.line])
    [6.696]
    [6.826]
    Text.populate_screen_line_starting_pos(Lines[Cursor1.line], left, right)
  • replacement in text.lua at line 591
    [3.355][6.252:314](),[6.1383][6.252:314]()
    Text.populate_screen_line_starting_pos(Lines[Cursor1.line])
    [3.355]
    [6.6316]
    Text.populate_screen_line_starting_pos(Lines[Cursor1.line], left, right)
  • replacement in text.lua at line 602
    [4.115][6.315:377](),[6.1711][6.315:377]()
    Text.populate_screen_line_starting_pos(Lines[Cursor1.line])
    [4.115]
    [6.1]
    Text.populate_screen_line_starting_pos(Lines[Cursor1.line], left, right)
  • replacement in text.lua at line 670
    [6.1129][6.378:425]()
    Text.populate_screen_line_starting_pos(line)
    [6.1129]
    [6.1130]
    Text.populate_screen_line_starting_pos(line, left, right)
  • replacement in text.lua at line 826
    [6.7808][6.426:485]()
    Text.populate_screen_line_starting_pos(Lines[pos1.line])
    [6.7808]
    [6.231]
    Text.populate_screen_line_starting_pos(Lines[pos1.line], left, right)
  • replacement in text.lua at line 891
    [6.1732][6.486:549]()
    Text.populate_screen_line_starting_pos(Lines[pos2.line-1])
    [6.1732]
    [6.528]
    Text.populate_screen_line_starting_pos(Lines[pos2.line-1], left, right)
  • replacement in text.lua at line 896
    [6.8448][6.550:604]()
    function Text.populate_screen_line_starting_pos(line)
    [6.8448]
    [6.70]
    function Text.populate_screen_line_starting_pos(line, left, right)
  • replacement in text.lua at line 905
    [6.129][6.2542:2566]()
    local x = Margin_left
    [6.129]
    [6.2381]
    local x = left
  • replacement in text.lua at line 911
    [6.1923][2.4537:4596](),[6.1925][6.2567:2589](),[2.4596][6.2567:2589](),[6.2627][6.2567:2589]()
    if x + frag_width > App.screen.width-Margin_right then
    x = Margin_left
    [6.3986]
    [6.194]
    if x + frag_width > right then
    x = left
  • replacement in text.lua at line 925
    [6.221][6.605:652]()
    Text.populate_screen_line_starting_pos(line)
    [6.221]
    [6.221]
    Text.populate_screen_line_starting_pos(line, left, right)