resolve conflicts

akkartik
Dec 2, 2023, 6:24 AM
GFBOJWNEEYQ5JE2ILT7FX3HWTBBZTEOI7SSNDLKR3XGKL56YC3AAC

Dependencies

Change contents

  • file deletion: source_select.lua (----------)source_select.lua (----------)
    [4.2][4.30050:30091](),[4.2][4.30050:30091](),[4.30091][4.23288:23288]()
    if State.mouse_down then
    maxl,maxp = Text.mouse_pos(State)
    else
    maxl,maxp = State.cursor1.line,State.cursor1.pos
    end
    if Text.lt1({line=maxl, pos=maxp},
    {line=minl, pos=minp}) then
    minl,maxl = maxl,minl
    minp,maxp = maxp,minp
    end
    -- check if intervals are disjoint
    if line_index < minl then return nil,nil end
    if line_index > maxl then return nil,nil end
    if line_index == minl and bpos <= minp then return nil,nil end
    if line_index == maxl and apos >= maxp then return nil,nil end
    -- compare bounds more carefully (start inclusive, end exclusive)
    local a_ge = Text.le1({line=minl, pos=minp}, {line=line_index, pos=apos})
    local b_lt = Text.lt1({line=line_index, pos=bpos}, {line=maxl, pos=maxp})
  • file deletion: source_edit.lua (----------)source_edit.lua (----------)
    [4.2][4.165788:165827](),[4.2][4.165788:165827](),[4.165827][4.152503:152503]()
    State.mouse_down = mouse_button
    State.mouse_down = nil
    if State.lines.current_drawing then
    --? print_and_log(('edit.mouse_press: cursor at %d,%d'):format(State.cursor1.line, State.cursor1.pos))