bugfix: scrolling up using scroll wheel

akkartik
Jan 22, 2025, 11:15 PM
ZLWFFQHIJHV4TE3JA27NK3CBNOMQU3UMMN6HVNQN7L2NMJMI43SAC

Dependencies

  • [2] O7YTBRQY bugfix: restart search on backspace
  • [3] F5KCYFOY simpler implementation of bugfix #2
  • [4] NVSC4N4K change a helper slightly
  • [5] IENTL2IT indent
  • [*] KKMFQDR4 editing source code from within the app
  • [*] 2L5MEZV3 experiment: new edit namespace

Change contents

  • replacement in source_edit.lua at line 146
    [2.1030][2.1030:1061]()
    while line < #State.lines do
    [2.1030]
    [2.1061]
    if State.lines[line].mode == 'text' then return end
    while line <= #State.lines and State.lines[line].mode ~= 'text' do
  • replacement in source_edit.lua at line 149
    [2.1384][2.1384:1489](),[2.1489][3.138:158](),[3.138][3.138:158]()
    if State.lines[line].mode == 'text' then
    State.cursor1.line = line
    State.cursor1.pos = 1
    break
    end
    [2.1079]
    [3.321]
    end
    if line <= #State.lines and State.lines[line].mode == 'text' then
    State.cursor1.line = line
    State.cursor1.pos = 1
  • replacement in edit.lua at line 144
    [2.2101][2.2101:2132]()
    while line < #State.lines do
    [2.2101]
    [2.2132]
    if State.lines[line].mode == 'text' then return end
    while line <= #State.lines and State.lines[line].mode ~= 'text' do
  • replacement in edit.lua at line 147
    [2.2455][2.2455:2560](),[2.2560][3.374:394](),[3.374][3.374:394]()
    if State.lines[line].mode == 'text' then
    State.cursor1.line = line
    State.cursor1.pos = 1
    break
    end
    [2.2150]
    [3.654]
    end
    if line <= #State.lines and State.lines[line].mode == 'text' then
    State.cursor1.line = line
    State.cursor1.pos = 1