bugfix: BSOD in #4.

[?]
Jun 12, 2022, 3:50 AM
CCYSVZA2ONWXB6XJXWSIEBY4CS2LGBEVV3RB6KZ6I4XYRXQLSTXQC

Dependencies

  • [2] RMKMPFT5 fix a corner case when selecting text
  • [3] CBPV5SSI stop handling nil screen_line_starting_pos everywhere
  • [4] MGOQ5XAV start uppercasing globals
  • [5] 7IKRRESB longer names for indices in long loops
  • [6] BOFNXP5G clicking now moves the cursor even on long, wrapped lines
  • [7] DLQMM265 scroll past first page
  • [8] 242L3OQX bugfix: ensure Cursor_line is always on a text line
  • [9] BULPIBEG beginnings of a module for the text editor
  • [10] HYEAFRZ2 split mouse_pressed events between Text and Drawing
  • [11] SVJZZDC3 snapshot - no, that's all wrong
  • [12] 6E3HVYWF test and App helper for mouse clicks
  • [13] ZUOL7X6V move
  • [14] 2INHXC3K position cursor by clicking on text
  • [15] DHI6IJCN selecting text and deleting selections
  • [16] 2ENZW7TV select text using mouse drag
  • [17] 5FW7YOFT highlight selection while dragging
  • [18] 3OKKTUT4 up and down arrow now moving by screen line where possible
  • [19] ZLJGZYQG select text with shift + mouseclick
  • [20] QZH3PQFU .
  • [21] OGUV4HSA remove some memory leaks from rendered fragments
  • [22] PR4KIAZD first stab at equally hacky cursor down support
  • [23] 3GFQP6IR stop saving the entire file when modifying drawings
  • [24] DXT4QTAH a few more integer coordinates
  • [25] HOSPP2AN crisp font rendering
  • [*] OTIBCAUJ love2d scaffold

Change contents

  • replacement in text.lua at line 669
    [4.936][4.6:39](),[4.6][4.6:39]()
    function Text.in_line(line, x,y)
    [4.936]
    [4.367]
    function Text.in_line(line_index,line, x,y)
  • replacement in text.lua at line 673
    [4.252][3.169:224]()
    Text.populate_screen_line_starting_pos(Cursor1.line)
    [4.252]
    [4.3806]
    Text.populate_screen_line_starting_pos(line_index)
  • replacement in main.lua at line 280
    [4.208][4.454:492]()
    if Text.in_line(line, x,y) then
    [4.208]
    [2.1719]
    if Text.in_line(line_index,line, x,y) then
  • replacement in main.lua at line 318
    [4.450][4.450:490]()
    if Text.in_line(line, x,y) then
    [4.450]
    [4.82]
    if Text.in_line(line_index,line, x,y) then