start using some globals
[?]
May 20, 2022, 1:09 PM
3TFEAQSWVFGSH3ISZ4Q3DFR3YPPWHEIBUEVR3XWB7QX6VKHW455QCDependencies
- [2]
LUNH47XXmake text and drawings the same width - [3]
EWMPYCDObugfix - [4]
BULPIBEGbeginnings of a module for the text editor - [5]
5DOC2CBMextract a function - [6]
UWNHC4AAredo y computations - [7]
4C375P53this is a bit clearer - [8]
XNFTJHC4split keyboard handling between Text and Drawing - [9]
H2DPLWMVsnapshot: wrapping long lines at word boundaries - [10]
DAENUOGVeliminate assumptions that line length == size in bytes - [11]
Y36LOGR5bugfix: show cursor when past end of line - [12]
BOFNXP5Gclicking now moves the cursor even on long, wrapped lines - [13]
B3IWYWSRdelete another arg that can be deduced - [*]
OTIBCAUJlove2d scaffold
Change contents
- replacement in text.lua at line 6
function Text.draw(line, line_width, line_index, cursor_line, cursor_pos)function Text.draw(line, line_width, line_index) - replacement in text.lua at line 33
if line_index == cursor_line thenif pos <= cursor_pos and pos + frag_len > cursor_pos thenText.draw_cursor(x+Text.cursor_x2(frag, cursor_pos-pos+1), y)if line_index == Cursor_line thenif pos <= Cursor_pos and pos + frag_len > Cursor_pos thenText.draw_cursor(x+Text.cursor_x2(frag, Cursor_pos-pos+1), y) - replacement in text.lua at line 41
if line_index == cursor_line and cursor_pos == pos thenif line_index == Cursor_line and Cursor_pos == pos then - replacement in main.lua at line 133
y = Text.draw(line, Line_width, line_index, Cursor_line, Cursor_pos)y = Text.draw(line, Line_width, line_index)