drop some unnecessary calls
[?]
Aug 15, 2022, 10:48 PM
HVJKBW5UACXZSWXCXVKYDTG6BKWFAUOEOAYJP7OFNFSY2A2J2DJACDependencies
- [2]
TGHAJBESuse line cache for drawings as well - [3]
XUGDTYW2stop confusingly reading a global - [4]
Y4SPXCM3bugfix: pagedown was sometimes bouncing up - [5]
M6TH7VSZrip out notion of Line_width - [6]
ODLKHO7Bswitch to line index in a function - [7]
MYC7XR5Qbugfix: lines that aren't drawn from the start - [8]
K4OBZSHEadd args to some functions - [9]
5DOTWNVMright margin - [10]
QCPXQ2E3add state arg to a few functions - [11]
FKNXK2OAswitch to line index in a function - [12]
JY4VK7L2rename - [13]
4VKEE43Zbugfix - [14]
HYEAFRZ2split mouse_pressed events between Text and Drawing - [15]
CVGE3SIGI feel confident now that page-down is working. - [16]
KURLAXXIclean up some prints - [17]
HGC5RGJPswitch to line index in a function - [18]
ILOA5BYFseparate data structure for each line's cache data - [19]
UV4EWOLYadd args to some functions - [20]
5FW7YOFThighlight selection while dragging - [21]
BOFNXP5Gclicking now moves the cursor even on long, wrapped lines - [22]
LERERVPHkeep one screen line of overlap on pagedown - [23]
NDHQN23Gdone passing left/right margins everywhere - [24]
2H67P75Xswitch arg for a function - [25]
MXA3RZYKdeduce left/right from state where possible - [26]
U52E2XZNfix a crash - [27]
OYXDYPGSget rid of debug variables - [28]
H2DPLWMVsnapshot: wrapping long lines at word boundaries - [29]
CBPV5SSIstop handling nil screen_line_starting_pos everywhere - [*]
BULPIBEGbeginnings of a module for the text editor
Change contents
- edit in text.lua at line 21[3.47]→[4.3821:3859](∅→∅),[4.807]→[4.3821:3859](∅→∅),[4.141]→[4.3821:3859](∅→∅),[4.3859]→[4.3:49](∅→∅),[4.1850]→[4.3:49](∅→∅),[4.49]→[4.103:109](∅→∅),[4.49]→[4.103:109](∅→∅),[4.135]→[4.103:109](∅→∅),[4.776]→[4.103:109](∅→∅),[4.103]→[4.103:109](∅→∅)
if line_cache.fragments == nil thenText.compute_fragments(State, line_index)end - edit in text.lua at line 704[2.1078]→[4.5600:5638](∅→∅),[4.5600]→[4.5600:5638](∅→∅),[4.5638]→[4.733:779](∅→∅),[4.35]→[4.733:779](∅→∅),[4.668]→[4.80:86](∅→∅),[4.779]→[4.80:86](∅→∅),[4.1844]→[4.80:86](∅→∅),[4.3150]→[4.80:86](∅→∅),[4.80]→[4.80:86](∅→∅)
if line_cache.fragments == nil thenText.compute_fragments(State, line_index)end