remove a duplicate print to screen
[?]
Jul 31, 2023, 3:56 PM
UBA2ZUCP3JP5SGM2R5O5X5VP6DY64Y76MH65UPSHNWEUXRPZISPQCDependencies
- [2]
SDEY7LFJrename a variable - [3]
IAWCZRFUextract a variable - [4]
GZ5WULJVswitch source side to new screen-line-based render - [5]
ZE7LVQNEimprove a comment - [6]
OYXDYPGSget rid of debug variables - [7]
ISOFHXB2App.width can no longer take a Text - [8]
DHI6IJCNselecting text and deleting selections - [9]
I64IPGJXavoid saving fragments in lines - [10]
CQWVUCXZbugfix: syntax highlighting in source editor - [11]
HALS7E5Umore clearly skip prints before screen top - [12]
S2QMLRXLstop creating a singleton table for every word - [13]
X3F7ECSLadd state arg to some functions - [14]
6WDBV52Zmove a var closer to its use - [15]
H4R5BHVYno more Text allocations - [16]
MXA3RZYKdeduce left/right from state where possible - [17]
KURLAXXIclean up some prints - [18]
KKMFQDR4editing source code from within the app - [19]
S2MISTTMadd state arg to a few functions - [20]
H2DPLWMVsnapshot: wrapping long lines at word boundaries - [21]
Z4XRNDTRfind text - [22]
HIKLULFQextract a function - [23]
ZPQI5UL3bugfix: never use utf8 pos in string.sub - [24]
FZBXBUFFbugfix: search - [25]
UN7GKYV5support hyperlinks in the source editor - [26]
KMSL74GAsupport selections in the source editor - [*]
BULPIBEGbeginnings of a module for the text editor
Change contents
- replacement in text.lua at line 25
-- render fragment-- render any highlights - edit in text.lua at line 30
App.color(Text_color)App.screen.print(screen_line, State.left,y) - replacement in text.lua at line 38[3.75]→[3.75:178](∅→∅),[3.178]→[4.738:774](∅→∅),[4.887]→[4.738:774](∅→∅),[4.1566]→[4.738:774](∅→∅),[4.738]→[4.738:774](∅→∅),[4.774]→[4.888:961](∅→∅)
local lo_px = Text.draw_highlight(State, line, State.left,y, pos, State.cursor1.pos, hi)App.color(Text_color)love.graphics.print(State.search_term, State.left+lo_px,y)Text.draw_highlight(State, line, State.left,y, pos, State.cursor1.pos, hi) - edit in text.lua at line 52
-- render fragmentApp.color(Text_color)App.screen.print(screen_line, State.left,y) - replacement in source_text.lua at line 42
-- render fragment-- render any highlights - edit in source_text.lua at line 46[4.1327]→[4.88179:88189](∅→∅),[4.20952]→[4.88179:88189](∅→∅),[4.88179]→[4.88179:88189](∅→∅),[4.88189]→[4.7:65](∅→∅),[4.65]→[2.575:625](∅→∅),[2.625]→[4.105:198](∅→∅),[4.105]→[4.105:198](∅→∅)
end-- render colorized textlocal x = State.leftfor frag in screen_line:gmatch('%S*%s*') doselect_color(frag)App.screen.print(frag, x,y)x = x+App.width(frag) - replacement in source_text.lua at line 55[3.254]→[3.254:357](∅→∅),[3.357]→[4.88735:88771](∅→∅),[4.1686]→[4.88735:88771](∅→∅),[4.88735]→[4.88735:88771](∅→∅),[4.88771]→[4.1687:1760](∅→∅)
local lo_px = Text.draw_highlight(State, line, State.left,y, pos, State.cursor1.pos, hi)App.color(Text_color)love.graphics.print(State.search_term, State.left+lo_px,y)Text.draw_highlight(State, line, State.left,y, pos, State.cursor1.pos, hi) - edit in source_text.lua at line 68
end-- render colorized textlocal x = State.leftfor frag in screen_line:gmatch('%S*%s*') doselect_color(frag)App.screen.print(frag, x,y)x = x+App.width(frag)