Merge lines.love
[?]
Apr 9, 2023, 5:52 AM
XYK7ESSIT2MBQT6D5RVUSRNUWKRMPG544DNJ7BEEJQ5WZTEV7UCACDependencies
- [2]
OEIR7M74Merge lines.love - [3]
SDEY7LFJrename a variable - [4]
6WDBV52Zmove a var closer to its use - [5]
VG34LDWYexperiment: simple hyperlinks just to local files - [6]
DHI6IJCNselecting text and deleting selections - [7]
Z4XRNDTRfind text - [8]
HALS7E5Umore clearly skip prints before screen top - [9]
X3F7ECSLadd state arg to some functions - [10]
I64IPGJXavoid saving fragments in lines - [*]
BULPIBEGbeginnings of a module for the text editor
Change contents
- resurrect zombie in text.lua at line 23
-- render any link decorationsfor _,link_offsets in ipairs(line_cache.link_offsets) dolocal s,e,filename = unpack(link_offsets)local lo, hi = Text.clip_filename_with_screen_line(line, line_cache, i, s, e)if lo thenbutton(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
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
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