some temporary logging to catch a bug
[?]
Jun 1, 2023, 7:20 PM
QJISOCHJGOGK4PTD4IGOBKBU2KMEXJZJCTBL6Y2ZNDVQ2WNR7N4ACDependencies
- [2]
GFXWHTE6mouse wheel support - [3]
4EGQRXDAbugfix: naming points - [4]
K6DTOGOQflip return value of button handlers - [5]
LF7BWEG4group all editor globals - [6]
UHB4GARJleft/right margin -> left/right coordinates - [7]
FKNXK2OAswitch to line index in a function - [8]
PK5U572Cdrop some extra args - [9]
KYNGDE2Cconsistent names in a few more places - [10]
2CK5QI7Wmake love event names consistent - [11]
QCPXQ2E3add state arg to a few functions - [12]
52ZZ5TIEswitch to line index in a function - [13]
LNUHQOGHstart passing in Editor_state explicitly - [14]
6D5MOJS4allow buttons to interrupt events - [15]
2L5MEZV3experiment: new edit namespace - [*]
LXTTOB33extract a couple of files - [*]
S2MISTTMadd state arg to a few functions - [*]
MXA3RZYKdeduce left/right from state where possible - [*]
KKMFQDR4editing source code from within the app
Change contents
- edit in select.lua at line 11
print_and_log('text.clip_selection') - edit in select.lua at line 14
print_and_log(('text.clip_selection: one end from selection: %d,%d'):format(minl,minp)) - edit in select.lua at line 18
print_and_log(('text.clip_selection: other end from mouse: %d,%d'):format(maxl,maxp)) - edit in select.lua at line 21
print_and_log(('text.clip_selection: other end from cursor: %d,%d'):format(maxl,maxp)) - edit in run.lua at line 51[20.179346][20.179346]
function print_and_log(s)print(s)log(3, s)end - replacement in edit.lua at line 226
--? print('press', State.cursor1.line)print_and_log(('edit.mouse_press: cursor at %d,%d').format(State.cursor1.line, State.cursor1.pos)) - edit in edit.lua at line 244
print_and_log(('edit.mouse_press: in line %d').format(line_index)) - replacement in edit.lua at line 252
--? print('selection', State.selection1.line, State.selection1.pos)print_and_log(('edit.mouse_press: selection now %d,%d').format(State.selection1.line, State.selection1.pos)) - replacement in edit.lua at line 270
--? print('release', State.cursor1.line)print_and_log(('edit.mouse_release: cursor at %d,%d').format(State.cursor1.line, State.cursor1.pos)) - edit in edit.lua at line 279
print_and_log('edit.mouse_release: no current drawing') - replacement in edit.lua at line 283[4.165]→[4.8966:9005](∅→∅),[4.258]→[4.8966:9005](∅→∅),[4.5626]→[4.8966:9005](∅→∅),[4.6573]→[4.8966:9005](∅→∅),[4.22831]→[4.8966:9005](∅→∅),[4.101439]→[4.8966:9005](∅→∅),[4.8966]→[4.8966:9005](∅→∅)
--? print('reset selection')print_and_log(('edit.mouse_release: in line %d').format(line_index)) - replacement in edit.lua at line 288
--? print('cursor', State.cursor1.line, State.cursor1.pos)print_and_log(('edit.mouse_release: cursor now %d,%d').format(State.cursor1.line, State.cursor1.pos)) - replacement in edit.lua at line 304
--? print('selection:', State.selection1.line, State.selection1.pos)print_and_log(('edit.mouse_release: finally selection %s,%s cursor %d,%d').format(tostring(State.selection1.line), tostring(State.selection1.pos), State.cursor1.line, State.cursor1.pos))