eliminate assumptions that line length == size in bytes
[?]
May 20, 2022, 12:46 AM
DAENUOGV7KR6MZVXS36HEN3SZC4RFIS6REGAFVBOFEPO76EUDGIACDependencies
- [2]
A2TQYJ6J. - [3]
H2DPLWMVsnapshot: wrapping long lines at word boundaries - [4]
B3IWYWSRdelete another arg that can be deduced - [5]
JCSLDGAHbeginnings of support for multiple shapes - [6]
VVXVV2D2change data model; text can now have metadata - [7]
DLQMM265scroll past first page - [8]
UWNHC4AAredo y computations - [9]
MGOQ5XAVstart uppercasing globals - [10]
XNFTJHC4split keyboard handling between Text and Drawing - [11]
IYW7X3WLleft/right cursor movement, deleting characters - [12]
4C375P53this is a bit clearer - [13]
AVQ5MC5Dfinish uppercasing all globals - [14]
2ZYV7D3Whandle tab characters - [15]
BULPIBEGbeginnings of a module for the text editor - [16]
HYEAFRZ2split mouse_pressed events between Text and Drawing - [*]
OTIBCAUJlove2d scaffold
Change contents
- replacement in text.lua at line 42
love.graphics.setColor(0.75,0.75,0.75)love.graphics.line(line_width, 0, line_width, Screen_height)--? love.graphics.setColor(0.75,0.75,0.75)--? love.graphics.line(line_width, 0, line_width, Screen_height) - replacement in text.lua at line 122
Cursor_pos = #Lines[Cursor_line].data+1Cursor_pos = utf8.len(Lines[Cursor_line].data) + 1 - replacement in text.lua at line 132
if Cursor_pos <= #Lines[Cursor_line].data thenif Cursor_pos <= utf8.len(Lines[Cursor_line].data) then - replacement in text.lua at line 151
Cursor_pos = #Lines[Cursor_line].data+1Cursor_pos = utf8.len(Lines[Cursor_line].data) + 1 - replacement in text.lua at line 179
if Cursor_pos <= #Lines[Cursor_line].data thenif Cursor_pos <= utf8.len(Lines[Cursor_line].data) then - replacement in text.lua at line 282
local max_x = Text.cursor_x(line, #line+1)local len = utf8.len(line)local max_x = Text.cursor_x(line, len+1) - replacement in text.lua at line 285
return #line+1return len+1 - replacement in text.lua at line 293
local left, right = 1, #line+1local left, right = 1, len+1 - replacement in main.lua at line 47
Cursor_pos = #Lines[Cursor_line].data+1 -- in Unicode codepointsCursor_pos = 1 -- in Unicode codepoints - replacement in main.lua at line 136
y = Text.draw(line, 100, line_index, Cursor_line, Cursor_pos)--? y = Text.draw(line, Drawing_width, line_index, Cursor_line, Cursor_pos)--? y = Text.draw(line, 100, line_index, Cursor_line, Cursor_pos)y = Text.draw(line, Drawing_width, line_index, Cursor_line, Cursor_pos)