get rid of debug variables

[?]
May 24, 2022, 6:00 AM
OYXDYPGSJK2QICJ6RBA7357WT4FSNAWRUT77YLQHT3F3VYMWGNFQC

Dependencies

  • [2] LERERVPH keep one screen line of overlap on pagedown
  • [3] BULPIBEG beginnings of a module for the text editor
  • [4] UWNHC4AA redo y computations
  • [5] 3TFEAQSW start using some globals
  • [6] 537TQ2QN some more logging
  • [7] YKRF5V3Z starting to load/save
  • [8] PFT5Y2ZY move
  • [9] YJGADSGK delete unused arg
  • [10] QU7NHFOV show cursor
  • [11] AVQ5MC5D finish uppercasing all globals
  • [12] XNFTJHC4 split keyboard handling between Text and Drawing
  • [13] 4C375P53 this is a bit clearer
  • [14] H2DPLWMV snapshot: wrapping long lines at word boundaries
  • [15] DLQMM265 scroll past first page
  • [16] DAENUOGV eliminate assumptions that line length == size in bytes
  • [17] MGT5FTJ3 first stab at supporting wrapping in cursor up
  • [18] CVGE3SIG I feel confident now that page-down is working.
  • [19] IRV65LZP fold variables for screen dimensions into the app framework
  • [20] U7M4M2F7 bugfix: don't rely on Screen_bottom1 while scrolling
  • [21] JRGTJ2IW quite the frustrating bugfix
  • [22] JY4VK7L2 rename
  • [23] PGZJ6NAT ensure Filename is writable when opened outside a terminal
  • [24] Y36LOGR5 bugfix: show cursor when past end of line
  • [25] QYIFOHW3 first test!
  • [26] Y6FTGOHJ simpler
  • [27] 5L7K4GBD clicking to the right of a wrapped line
  • [28] YTSPVDZH first successful pagedown test, first bug found by test
  • [29] MDXGMZU2 disable all debug prints
  • [30] 3CS5KKCI up/down cursor movement
  • [31] 5DOC2CBM extract a function
  • [32] ESETRNLB bugfix: printing the first part of a line at the bottom made it seem non-wrapping
  • [33] LUNH47XX make text and drawings the same width
  • [34] B3IWYWSR delete another arg that can be deduced
  • [35] 2POFQQLW keep cursor on screen when pressing 'down'
  • [36] AVTNUQYR basic test-enabled framework
  • [37] S5VCAFKY couple of tests for cursor down
  • [38] OTIBCAUJ love2d scaffold
  • [39] JCSLDGAH beginnings of support for multiple shapes
  • [40] XX7G2FFJ intermingle freehand line drawings with text
  • [41] RTDYYP4H bugfix: text past cursor was rendered red on wrapped lines
  • [42] WLHI7KD3 new globals: draw partial screen line up top
  • [43] 7IKRRESB longer names for indices in long loops
  • [44] 2RXZ3PGO beginning of a new approach to scroll+wrap
  • [45] H22OAXWE couple of TODOs
  • [46] A2NV3WVO scrolling with up arrow

Change contents

  • edit in text.lua at line 5
    [3.30][3.1:2](),[3.2][3.1:32]()
    local Debug_new_render = false
  • replacement in text.lua at line 23
    [3.84][3.32:75](),[2.109][3.32:75](),[3.39][3.32:75]()
    if Debug_new_render then print('--') end
    [2.109]
    [3.1901]
    --? print('--')
  • edit in text.lua at line 41
    [3.294][3.76:127](),[2.648][3.76:127](),[3.119][3.76:127]()
    if Debug_new_render then print('y', y) end
  • replacement in text.lua at line 47
    [3.220][3.223:282](),[3.485][3.223:282](),[3.210][3.223:282]()
    if Debug_new_render then print('drawing '..frag) end
    [3.485]
    [3.63]
    --? print('drawing '..frag)
  • edit in text.lua at line 63
    [3.144][3.283:310]()
    Debug_new_render = false
  • edit in text.lua at line 590
    [3.627][3.33:63]()
    --? Debug_new_render = true
  • edit in main.lua at line 87
    [3.63][3.1591:1592](),[3.1592][3.2234:2253]()
    Debug_main = false
  • replacement in main.lua at line 126
    [3.18][3.2254:2296]()
    if Debug_main then print('== draw') end
    [3.18]
    [3.2]
    --? print('== draw')
  • replacement in main.lua at line 128
    [3.44][3.2915:2950](),[3.1020][3.2297:2354](),[3.2950][3.2297:2354](),[3.44][3.2297:2354]()
    --? print(y, line_index, line)
    if Debug_main then print('draw:', line_index, y) end
    [3.44]
    [3.338]
    --? print('draw:', y, line_index, line)
  • replacement in main.lua at line 153
    [3.1510][3.2355:2400]()
    if Debug_main then print('text') end
    [3.1510]
    [3.194]
    --? print('text')
  • replacement in main.lua at line 157
    [3.108][3.2401:2447]()
    if Debug_main then print('aa', y) end
    [3.108]
    [3.1574]
    --? print('=> y', y)
  • edit in main.lua at line 161
    [3.416][3.2448:2469]()
    Debug_main = false
  • edit in main.lua at line 201
    [3.1550][3.2470:2494]()
    --? Debug_main = true