switch to line index in a function
[?]
Jul 17, 2022, 4:05 PM
52ZZ5TIEK5Z6VVXO7R3EFV5JTIWDA4IDD3YISXHHTHQMOAKVYJJQCDependencies
- [2]
MXA3RZYKdeduce left/right from state where possible - [3]
PK5U572Cdrop some extra args - [4]
242L3OQXbugfix: ensure Cursor_line is always on a text line - [5]
R22PA3XRfix a second BSOD in #4 :/ - [6]
LF7BWEG4group all editor globals - [7]
S2MISTTMadd state arg to a few functions - [8]
QCPXQ2E3add state arg to a few functions - [9]
LNUHQOGHstart passing in Editor_state explicitly - [10]
OGUV4HSAremove some memory leaks from rendered fragments - [11]
CTJ3IZGSadd args to some functions - [12]
CCYSVZA2bugfix: BSOD in #4. - [13]
MYC7XR5Qbugfix: lines that aren't drawn from the start - [14]
3OKKTUT4up and down arrow now moving by screen line where possible - [15]
EMRPLZPWdrop an arg from a function - [16]
UHB4GARJleft/right margin -> left/right coordinates - [17]
LXTTOB33extract a couple of files - [18]
2L5MEZV3experiment: new edit namespace - [19]
HYEAFRZ2split mouse_pressed events between Text and Drawing - [*]
BULPIBEGbeginnings of a module for the text editor
Change contents
- replacement in text.lua at line 696
function Text.in_line(State, line, x,y)function Text.in_line(State, line_index, x,y)local line = State.lines[line_index] - replacement in select.lua at line 96
if Text.in_line(State, line, x,y) thenif Text.in_line(State, line_index, x,y) then - replacement in edit.lua at line 203
if Text.in_line(State, line, x,y) thenif Text.in_line(State, line_index, x,y) then - replacement in edit.lua at line 248
if Text.in_line(State, line, x,y) thenif Text.in_line(State, line_index, x,y) then