ah, I see the problem

[?]
Jun 1, 2023, 7:33 PM
7FPELAZBPC6545IA75OOVI5CJUKCV5OLBHVMWM3KMSKTZO6SOWNAC

Dependencies

  • [2] QJISOCHJ some temporary logging to catch a bug
  • [3] PK5U572C drop some extra args
  • [4] DRFE3B3Z mouse buttons are integers, not strings
  • [5] K6DTOGOQ flip return value of button handlers
  • [6] 2CK5QI7W make love event names consistent
  • [7] LF7BWEG4 group all editor globals
  • [8] LNUHQOGH start passing in Editor_state explicitly
  • [9] QCPXQ2E3 add state arg to a few functions
  • [10] UHB4GARJ left/right margin -> left/right coordinates
  • [11] 52ZZ5TIE switch to line index in a function
  • [12] LXTTOB33 extract a couple of files
  • [13] 2L5MEZV3 experiment: new edit namespace
  • [14] 6D5MOJS4 allow buttons to interrupt events
  • [15] KYNGDE2C consistent names in a few more places
  • [16] 4EGQRXDA bugfix: naming points
  • [17] FKNXK2OA switch to line index in a function
  • [18] HIKLULFQ extract a function
  • [19] MXA3RZYK deduce left/right from state where possible
  • [20] GFXWHTE6 mouse wheel support
  • [21] S2MISTTM add state arg to a few functions
  • [22] 4KC7I3E2 make colors easier to edit
  • [23] ISOFHXB2 App.width can no longer take a Text

Change contents

  • edit in select.lua at line 11
    [3.655][2.13:52]()
    print_and_log('text.clip_selection')
  • edit in select.lua at line 13
    [3.772][2.53:143]()
    print_and_log(('text.clip_selection: one end from selection: %d,%d'):format(minl,minp))
  • edit in select.lua at line 16
    [3.4046][2.144:234]()
    print_and_log(('text.clip_selection: other end from mouse: %d,%d'):format(maxl,maxp))
  • edit in select.lua at line 18
    [3.878][2.235:326]()
    print_and_log(('text.clip_selection: other end from cursor: %d,%d'):format(maxl,maxp))
  • edit in select.lua at line 32
    [3.45439][3.45439:45517]()
    --? print(minl,line_index,maxl, '--', minp,apos,bpos,maxp, '--', a_ge,b_lt)
  • edit in select.lua at line 62
    [3.630][3.630:706]()
    --? print(lo,pos,hi, '--', lo_offset,pos_offset,hi_offset, '--', lo_px)
  • edit in select.lua at line 74
    [3.1135]
    [3.1135]
    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
    [3.4581][2.396:497]()
    print_and_log(('edit.mouse_press: cursor at %d,%d').format(State.cursor1.line, State.cursor1.pos))
    [3.4581]
    [3.15]
    print_and_log(('edit.mouse_press: cursor at %d,%d'):format(State.cursor1.line, State.cursor1.pos))
  • replacement in edit.lua at line 244
    [3.5449][2.498:573]()
    print_and_log(('edit.mouse_press: in line %d').format(line_index))
    [3.5449]
    [3.4792]
    print_and_log(('edit.mouse_press: in line %d'):format(line_index))
  • replacement in edit.lua at line 252
    [3.7962][2.574:691]()
    print_and_log(('edit.mouse_press: selection now %d,%d').format(State.selection1.line, State.selection1.pos))
    [3.7962]
    [3.8026]
    print_and_log(('edit.mouse_press: selection now %d,%d'):format(State.selection1.line, State.selection1.pos))
  • replacement in edit.lua at line 270
    [3.5338][2.692:795]()
    print_and_log(('edit.mouse_release: cursor at %d,%d').format(State.cursor1.line, State.cursor1.pos))
    [3.5338]
    [3.5339]
    print_and_log(('edit.mouse_release: cursor at %d,%d'):format(State.cursor1.line, State.cursor1.pos))
  • replacement in edit.lua at line 283
    [3.258][2.857:936]()
    print_and_log(('edit.mouse_release: in line %d').format(line_index))
    [3.258]
    [3.5627]
    print_and_log(('edit.mouse_release: in line %d'):format(line_index))
  • replacement in edit.lua at line 288
    [3.9165][2.937:1049]()
    print_and_log(('edit.mouse_release: cursor now %d,%d').format(State.cursor1.line, State.cursor1.pos))
    [3.9165]
    [3.5833]
    print_and_log(('edit.mouse_release: cursor now %d,%d'):format(State.cursor1.line, State.cursor1.pos))
  • replacement in edit.lua at line 304
    [3.9624][2.1050:1241]()
    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))
    [3.9624]
    [3.1864]
    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))