disable all debug prints

[?]
May 23, 2022, 10:38 PM
MDXGMZU2MBEDMTB755D3RRYEFKF54GTTYTI5XJYKKKN5ZFQWZXTAC

Dependencies

  • [2] JRGTJ2IW quite the frustrating bugfix
  • [3] WLHI7KD3 new globals: draw partial screen line up top
  • [4] QYIFOHW3 first test!
  • [5] CA5T33FG one more implication
  • [6] YTSPVDZH first successful pagedown test, first bug found by test
  • [7] H2DPLWMV snapshot: wrapping long lines at word boundaries
  • [8] 2POFQQLW keep cursor on screen when pressing 'down'
  • [9] BOFNXP5G clicking now moves the cursor even on long, wrapped lines
  • [10] SVJZZDC3 snapshot - no, that's all wrong
  • [11] AVTNUQYR basic test-enabled framework
  • [12] IMEJA43L snapshot
  • [13] DLQMM265 scroll past first page
  • [14] KJKKASHZ reduce ambitions a bit: page up/down need not start screen from the middle of a line
  • [15] 3OKKTUT4 up and down arrow now moving by screen line where possible
  • [16] XNFTJHC4 split keyboard handling between Text and Drawing
  • [17] TRNWIQN6 more precise height calculation when scrolling up as much as possible while keeping cursor on screen
  • [18] 242L3OQX bugfix: ensure Cursor_line is always on a text line
  • [19] ESETRNLB bugfix: printing the first part of a line at the bottom made it seem non-wrapping
  • [20] AIRIP35Z cleaner
  • [21] PFT5Y2ZY move
  • [22] PR4KIAZD first stab at equally hacky cursor down support
  • [23] MGT5FTJ3 first stab at supporting wrapping in cursor up
  • [24] U7M4M2F7 bugfix: don't rely on Screen_bottom1 while scrolling
  • [25] PYGMASTV disable some debug prints
  • [26] CVGE3SIG I feel confident now that page-down is working.
  • [27] 2RXZ3PGO beginning of a new approach to scroll+wrap
  • [*] BULPIBEG beginnings of a module for the text editor
  • [*] OTIBCAUJ love2d scaffold
  • [*] 3QNOKBFM beginnings of a test harness

Change contents

  • replacement in text.lua at line 29
    [2.22][2.22:201]()
    print('('..s(x)..','..s(y)..') '..frag..'('..s(frag_width)..' vs '..s(line_width)..') '..s(line_index)..' vs '..s(Screen_top1.line)..'; '..s(pos)..' vs '..s(Screen_top1.pos))
    [2.22]
    [3.2068]
    --? print('('..s(x)..','..s(y)..') '..frag..'('..s(frag_width)..' vs '..s(line_width)..') '..s(line_index)..' vs '..s(Screen_top1.line)..'; '..s(pos)..' vs '..s(Screen_top1.pos))
  • replacement in text.lua at line 33
    [3.137][3.1:70](),[2.243][3.1:70](),[3.2151][3.1:70]()
    if line_index > Screen_top1.line or pos > Screen_top1.pos then
    [2.243]
    [3.83]
    if line_index > Screen_top1.line or pos >= Screen_top1.pos then
  • replacement in text.lua at line 46
    [3.202][3.115:184](),[2.306][3.115:184](),[3.115][3.115:184](),[3.184][2.307:326]()
    if line_index > Screen_top1.line or pos > Screen_top1.pos then
    print('a')
    [2.306]
    [2.326]
    if line_index > Screen_top1.line or pos >= Screen_top1.pos then
    --? print('a')
  • replacement in text.lua at line 49
    [2.386][3.221:264](),[3.170][3.221:264]()
    print('b', y, App.screen.height)
    [2.386]
    [3.241]
    --? print('b', y, App.screen.height)
  • replacement in text.lua at line 403
    [3.571][3.6797:6846]()
    print(frag, x, frag_width, line_width)
    [3.571]
    [3.571]
    --? print(frag, x, frag_width, line_width)
  • replacement in text.lua at line 411
    [3.6986][3.6986:7036]()
    print(frag, x, frag1_width, line_width)
    [3.6986]
    [3.7036]
    --? print(frag, x, frag1_width, line_width)
  • replacement in text.lua at line 598
    [3.5222][3.299:420]()
    print('down', Cursor1.line, Cursor1.pos, Screen_top1.line, Screen_top1.pos, Screen_bottom1.line, Screen_bottom1.pos)
    [3.5222]
    [3.267]
    --? print('down', Cursor1.line, Cursor1.pos, Screen_top1.line, Screen_top1.pos, Screen_bottom1.line, Screen_bottom1.pos)
  • replacement in text.lua at line 601
    [3.360][3.421:476]()
    print('cursor at final screen line of its line')
    [3.360]
    [3.476]
    --? print('cursor at final screen line of its line')
  • replacement in text.lua at line 609
    [3.5392][3.498:527]()
    print(Cursor1.pos)
    [3.5392]
    [3.751]
    --? print(Cursor1.pos)
  • replacement in text.lua at line 614
    [3.5539][3.528:599]()
    print('screen top before:', Screen_top1.line, Screen_top1.pos)
    [3.5539]
    [3.5614]
    --? print('screen top before:', Screen_top1.line, Screen_top1.pos)
  • replacement in text.lua at line 616
    [3.5654][3.600:645]()
    print('scroll up preserving cursor')
    [3.5654]
    [3.874]
    --? print('scroll up preserving cursor')
  • replacement in text.lua at line 618
    [3.922][3.646:716]()
    print('screen top after:', Screen_top1.line, Screen_top1.pos)
    [3.922]
    [3.4899]
    --? print('screen top after:', Screen_top1.line, Screen_top1.pos)
  • replacement in text.lua at line 622
    [3.983][3.717:779]()
    print('cursor is NOT at final screen line of its line')
    [3.983]
    [3.1045]
    --? print('cursor is NOT at final screen line of its line')
  • replacement in text.lua at line 625
    [3.5904][3.780:924]()
    print('switching pos of screen line at cursor from '..tostring(screen_line_starting_pos)..' to '..tostring(new_screen_line_starting_pos))
    [3.5904]
    [3.5905]
    --? print('switching pos of screen line at cursor from '..tostring(screen_line_starting_pos)..' to '..tostring(new_screen_line_starting_pos))
  • replacement in text.lua at line 628
    [3.6080][3.1:61]()
    print('cursor pos is now', Cursor1.line, Cursor1.pos)
    [3.6080]
    [3.6141]
    --? print('cursor pos is now', Cursor1.line, Cursor1.pos)
  • replacement in text.lua at line 630
    [3.6179][3.983:1026]()
    print('scroll up preserving cursor')
    [3.6179]
    [3.1620]
    --? print('scroll up preserving cursor')
  • replacement in text.lua at line 632
    [3.1666][3.1027:1095]()
    print('screen top after:', Screen_top1.line, Screen_top1.pos)
    [3.1666]
    [3.1313]
    --? print('screen top after:', Screen_top1.line, Screen_top1.pos)
  • replacement in text.lua at line 634
    [3.1321][3.1096:1215]()
    print('=>', Cursor1.line, Cursor1.pos, Screen_top1.line, Screen_top1.pos, Screen_bottom1.line, Screen_bottom1.pos)
    [3.1321]
    [3.1321]
    --? print('=>', Cursor1.line, Cursor1.pos, Screen_top1.line, Screen_top1.pos, Screen_bottom1.line, Screen_bottom1.pos)
  • replacement in text.lua at line 656
    [3.63][3.1216:1266]()
    print(screen_lines[#screen_lines], Cursor1.pos)
    [3.63]
    [3.63]
    --? print(screen_lines[#screen_lines], Cursor1.pos)
  • replacement in text.lua at line 666
    [3.186][3.713:753]()
    print('cursor skips', Cursor1.line)
    [3.186]
    [3.753]
    --? print('cursor skips', Cursor1.line)
  • replacement in text.lua at line 678
    [3.985][3.2154:2177](),[3.6916][3.2154:2177]()
    print('scroll up')
    [3.985]
    [3.6916]
    --? print('scroll up')
  • replacement in main.lua at line 234
    [3.562][3.1037:1083]()
    print('setting top to', Screen_top1.line)
    [3.562]
    [3.9557]
    --? print('setting top to', Screen_top1.line)
  • replacement in main.lua at line 238
    [3.1020][3.1084:1123]()
    print('top now', Screen_top1.line)
    [3.1020]
    [3.1721]
    --? print('top now', Screen_top1.line)
  • replacement in app.lua at line 141
    [3.6151][3.2886:2936]()
    print('drawing "'..msg..'" at y '..tostring(y))
    [3.6151]
    [3.6151]
    --? print('drawing "'..msg..'" at y '..tostring(y))