Merge lines.love

[?]
Apr 9, 2023, 5:52 AM
XYK7ESSIT2MBQT6D5RVUSRNUWKRMPG544DNJ7BEEJQ5WZTEV7UCAC

Dependencies

  • [2] OEIR7M74 Merge lines.love
  • [3] SDEY7LFJ rename a variable
  • [4] 6WDBV52Z move a var closer to its use
  • [5] VG34LDWY experiment: simple hyperlinks just to local files
  • [6] DHI6IJCN selecting text and deleting selections
  • [7] Z4XRNDTR find text
  • [8] HALS7E5U more clearly skip prints before screen top
  • [9] X3F7ECSL add state arg to some functions
  • [10] I64IPGJX avoid saving fragments in lines
  • [*] BULPIBEG beginnings of a module for the text editor

Change contents

  • resurrect zombie in text.lua at line 23
    [4.521][2.52:594](),[4.521][2.52:594]()
    -- render any link decorations
    for _,link_offsets in ipairs(line_cache.link_offsets) do
    local s,e,filename = unpack(link_offsets)
    local lo, hi = Text.clip_filename_with_screen_line(line, line_cache, i, s, e)
    if lo then
    button(State, 'link', {x=State.left+lo, y=y, w=hi-lo, h=State.line_height, color={1,1,1},
    icon = icon.hyperlink_decoration,
    onpress1 = function()
    run.switch_to_file(filename)
    end,
    })
    end
  • edit in text.lua at line 23
    [4.363]
    [2.52]
    local screen_line = Text.screen_line(line, line_cache, i)
    --? print('text.draw:', screen_line, 'at', line_index,pos, 'after', x,y)
    local frag_len = utf8.len(screen_line)
  • edit in text.lua at line 38
    [4.363][3.3:191](),[4.363][3.3:191]()
    local screen_line = Text.screen_line(line, line_cache, i)
    --? print('text.draw:', screen_line, 'at', line_index,pos, 'after', x,y)
    local frag_len = utf8.len(screen_line)
  • resolve order conflict in text.lua at line 38
    [2.594]
    [4.3]