ah, I see the problem
[?]
Jun 1, 2023, 7:33 PM
7FPELAZBPC6545IA75OOVI5CJUKCV5OLBHVMWM3KMSKTZO6SOWNACDependencies
- [2]
QJISOCHJsome temporary logging to catch a bug - [3]
PK5U572Cdrop some extra args - [4]
DRFE3B3Zmouse buttons are integers, not strings - [5]
K6DTOGOQflip return value of button handlers - [6]
2CK5QI7Wmake love event names consistent - [7]
LF7BWEG4group all editor globals - [8]
LNUHQOGHstart passing in Editor_state explicitly - [9]
QCPXQ2E3add state arg to a few functions - [10]
UHB4GARJleft/right margin -> left/right coordinates - [11]
52ZZ5TIEswitch to line index in a function - [12]
LXTTOB33extract a couple of files - [13]
2L5MEZV3experiment: new edit namespace - [14]
6D5MOJS4allow buttons to interrupt events - [15]
KYNGDE2Cconsistent names in a few more places - [16]
4EGQRXDAbugfix: naming points - [17]
FKNXK2OAswitch to line index in a function - [18]
HIKLULFQextract a function - [19]
MXA3RZYKdeduce left/right from state where possible - [20]
GFXWHTE6mouse wheel support - [21]
S2MISTTMadd state arg to a few functions - [22]
4KC7I3E2make colors easier to edit - [23]
ISOFHXB2App.width can no longer take a Text
Change contents
- edit in select.lua at line 11
print_and_log('text.clip_selection') - edit in select.lua at line 13
print_and_log(('text.clip_selection: one end from selection: %d,%d'):format(minl,minp)) - edit in select.lua at line 16
print_and_log(('text.clip_selection: other end from mouse: %d,%d'):format(maxl,maxp)) - edit in select.lua at line 18
print_and_log(('text.clip_selection: other end from cursor: %d,%d'):format(maxl,maxp)) - edit in select.lua at line 32
--? print(minl,line_index,maxl, '--', minp,apos,bpos,maxp, '--', a_ge,b_lt) - edit in select.lua at line 62
--? print(lo,pos,hi, '--', lo_offset,pos_offset,hi_offset, '--', lo_px) - edit in select.lua at line 74
print_and_log(('text.mouse_pos: returning recent value %d,%d'):format(State.recent_mouse.line, State.recent_mouse.pos)) - replacement in edit.lua at line 226
print_and_log(('edit.mouse_press: cursor at %d,%d').format(State.cursor1.line, State.cursor1.pos))print_and_log(('edit.mouse_press: cursor at %d,%d'):format(State.cursor1.line, State.cursor1.pos)) - replacement in edit.lua at line 244
print_and_log(('edit.mouse_press: in line %d').format(line_index))print_and_log(('edit.mouse_press: in line %d'):format(line_index)) - replacement in edit.lua at line 252
print_and_log(('edit.mouse_press: selection now %d,%d').format(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_and_log(('edit.mouse_release: cursor at %d,%d').format(State.cursor1.line, State.cursor1.pos))print_and_log(('edit.mouse_release: cursor at %d,%d'):format(State.cursor1.line, State.cursor1.pos)) - replacement in edit.lua at line 283
print_and_log(('edit.mouse_release: in line %d').format(line_index))print_and_log(('edit.mouse_release: in line %d'):format(line_index)) - replacement in edit.lua at line 288
print_and_log(('edit.mouse_release: cursor now %d,%d').format(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_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))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))