switch arg for a function

[?]
Jul 8, 2022, 3:47 PM
2H67P75X7FSSNZMV4TU5I46XLIYAJ5VT7H6MS7GYLUSNTA4IRDFQC

Dependencies

  • [2] YGCT2D2O start loading settings as applicable
  • [3] WOXIYUTL bugfix: manage screen_top and cursor when resizing
  • [4] SVJZZDC3 snapshot - no, that's all wrong
  • [5] M6TH7VSZ rip out notion of Line_width
  • [6] XX7G2FFJ intermingle freehand line drawings with text
  • [7] PX7DDEMO autosave slightly less aggressively
  • [8] 2RXZ3PGO beginning of a new approach to scroll+wrap
  • [9] IRV65LZP fold variables for screen dimensions into the app framework
  • [10] EDY3RQUL gracefully handle a non-existent filename at the commandline
  • [11] ESETRNLB bugfix: printing the first part of a line at the bottom made it seem non-wrapping
  • [12] OYXDYPGS get rid of debug variables
  • [13] EGH7XDBK support non-text lines in Text.to2
  • [14] AIRIP35Z cleaner
  • [15] XNFTJHC4 split keyboard handling between Text and Drawing
  • [16] MYC7XR5Q bugfix: lines that aren't drawn from the start
  • [17] DHCLUDCW .
  • [18] GCEF4N3V stop repeatedly checking for line wrapping
  • [19] HJ3PM2VT .
  • [20] ZPUQSPQP extract a few methods
  • [21] QU7NHFOV show cursor
  • [22] R53OF3ON one bug I've repeatedly run into while testing with Moby Dick
  • [23] LERERVPH keep one screen line of overlap on pagedown
  • [24] 4VKEE43Z bugfix
  • [25] 5FW7YOFT highlight selection while dragging
  • [26] OTIBCAUJ love2d scaffold
  • [27] H2DPLWMV snapshot: wrapping long lines at word boundaries
  • [28] 3OKKTUT4 up and down arrow now moving by screen line where possible
  • [29] DLQMM265 scroll past first page
  • [30] CBPV5SSI stop handling nil screen_line_starting_pos everywhere
  • [31] 6E3HVYWF test and App helper for mouse clicks
  • [32] KZ5GAYRP this fixes the immediate regression
  • [33] VJ77YABH more efficient undo/redo
  • [34] ZNLTRNNK highlight another global
  • [35] LAW2O3NW extract variable Margin_left
  • [36] JY4VK7L2 rename
  • [37] AVQ5MC5D finish uppercasing all globals
  • [38] 5DOTWNVM right margin
  • [39] HYEAFRZ2 split mouse_pressed events between Text and Drawing
  • [40] BOFNXP5G clicking now moves the cursor even on long, wrapped lines
  • [41] AYE2VEGJ extract a couple of methods
  • [42] MDXGMZU2 disable all debug prints
  • [43] 2ZYV7D3W handle tab characters
  • [44] PR4KIAZD first stab at equally hacky cursor down support
  • [45] V5MJRFOZ bugfix: down arrow doesn't scroll up unnecessarily
  • [46] K464QQR4 more defensive resize handling
  • [47] CCYSVZA2 bugfix: BSOD in #4.
  • [48] HDC3AAQP silly reason my screenshots had an ugly black line down the left
  • [49] DGK5BPVI bugfix: UTF-8 in compute_fragments
  • [50] 2C7CTIQY make space for multiple kinds of width
  • [51] BULPIBEG beginnings of a module for the text editor
  • [52] P66MRF3U bugfix: don't append metadata when it already exists
  • [53] HOSPP2AN crisp font rendering
  • [54] HTWAM4NZ bugfix: scrolling in left/right movements
  • [55] PIEDOKYQ bugfix
  • [56] NZ7V4BVS note card
  • [57] PESSMQBJ no, make sure to compute line width after screen dimensions
  • [58] 4NDYV4WD fix 2 bugs in line selection
  • [59] YJJ4X4JG bugfix: avoid scrolling on 'end'
  • [60] IRCKL6VN extract scrolling logic out of insert_at_cursor
  • [61] G3VLJLDH use the background color

Change contents

  • replacement in text.lua at line 25
    [4.109][4.3:56]()
    Text.populate_screen_line_starting_pos(line_index)
    [4.109]
    [4.1]
    Text.populate_screen_line_starting_pos(line)
  • replacement in text.lua at line 146
    [4.173][4.173:230]()
    Text.populate_screen_line_starting_pos(Cursor1.line)
    [4.173]
    [4.230]
    Text.populate_screen_line_starting_pos(Lines[Cursor1.line])
  • replacement in text.lua at line 179
    [4.577][4.577:636]()
    Text.populate_screen_line_starting_pos(Cursor1.line)
    [4.577]
    [4.636]
    Text.populate_screen_line_starting_pos(Lines[Cursor1.line])
  • replacement in text.lua at line 418
    [4.696][4.696:757]()
    Text.populate_screen_line_starting_pos(Cursor1.line)
    [4.696]
    [4.826]
    Text.populate_screen_line_starting_pos(Lines[Cursor1.line])
  • replacement in text.lua at line 591
    [4.1383][4.57:112]()
    Text.populate_screen_line_starting_pos(Cursor1.line)
    [4.1383]
    [4.6316]
    Text.populate_screen_line_starting_pos(Lines[Cursor1.line])
  • replacement in text.lua at line 602
    [4.1711][4.113:168]()
    Text.populate_screen_line_starting_pos(Cursor1.line)
    [4.1711]
    [4.1]
    Text.populate_screen_line_starting_pos(Lines[Cursor1.line])
  • replacement in text.lua at line 670
    [4.1129][4.48:101](),[4.252][4.48:101]()
    Text.populate_screen_line_starting_pos(line_index)
    [4.1129]
    [4.1130]
    Text.populate_screen_line_starting_pos(line)
  • replacement in text.lua at line 825
    [4.7808][4.225:277]()
    Text.populate_screen_line_starting_pos(pos1.line)
    [4.7808]
    [4.231]
    Text.populate_screen_line_starting_pos(Lines[pos1.line])
  • replacement in text.lua at line 890
    [4.1732][4.278:334]()
    Text.populate_screen_line_starting_pos(pos2.line-1)
    [4.1732]
    [4.528]
    Text.populate_screen_line_starting_pos(Lines[pos2.line-1])
  • replacement in text.lua at line 895
    [4.8448][4.2149:2209](),[4.2209][4.631:697](),[4.697][4.2250:2283](),[4.2250][4.2250:2283]()
    function Text.populate_screen_line_starting_pos(line_index)
    --? print('Text.populate_screen_line_starting_pos', line_index)
    local line = Lines[line_index]
    [4.8448]
    [4.70]
    function Text.populate_screen_line_starting_pos(line)
  • edit in text.lua at line 910
    [4.3986][4.1883:1923]()
    --? print(x, pos, frag, frag_width)
  • edit in text.lua at line 913
    [4.249][4.1924:1997]()
    --? print('new screen line:', #line.screen_line_starting_pos, pos)
  • edit in text.lua at line 923
    [3.123][3.123:182]()
    Text.populate_screen_line_starting_pos(Screen_top1.line)
  • edit in text.lua at line 924
    [3.221]
    [3.221]
    Text.populate_screen_line_starting_pos(line)
  • edit in main.lua at line 228
    [4.64][4.302:336](),[4.88][4.302:336](),[4.165][4.302:336](),[4.337][4.302:336](),[4.932][4.302:336](),[4.1317][4.302:336](),[4.302][4.302:336]()
    love.graphics.setColor(0, 0, 0)
  • edit in main.lua at line 229
    [4.261]
    [2.1144]
    love.graphics.setColor(0, 0, 0)