rename a variable
[?]
Apr 9, 2023, 5:44 AM
SDEY7LFJ4LY735OZAJ6X5Y2SE3MFBT4X4TWLHVW3SS2JAK757E6QCDependencies
- [2]
I64IPGJXavoid saving fragments in lines - [3]
CQWVUCXZbugfix: syntax highlighting in source editor - [4]
H4R5BHVYno more Text allocations - [5]
6WDBV52Zmove a var closer to its use - [6]
Z4XRNDTRfind text - [7]
S2QMLRXLstop creating a singleton table for every word - [8]
GZ5WULJVswitch source side to new screen-line-based render - [9]
DHI6IJCNselecting text and deleting selections - [10]
HALS7E5Umore clearly skip prints before screen top - [11]
V5SYDHPQstart thinking of compute_fragments as a detail - [12]
XUGDTYW2stop confusingly reading a global - [13]
KKMFQDR4editing source code from within the app - [*]
BULPIBEGbeginnings of a module for the text editor
Change contents
- edit in text.lua at line 20
--? print('skipping', f) - replacement in text.lua at line 22
local f = Text.screen_line(line, line_cache, i)--? print('text.draw:', f, 'at', line_index,pos, 'after', x,y)local frag_len = utf8.len(f)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) - replacement in text.lua at line 31
App.screen.print(f, State.left,y)App.screen.print(screen_line, State.left,y) - replacement in text.lua at line 42
Text.draw_cursor(State, State.left+Text.x(f, State.cursor1.pos-pos+1), y)Text.draw_cursor(State, State.left+Text.x(screen_line, State.cursor1.pos-pos+1), y) - replacement in source_text.lua at line 21
--? print('skipping', f)--? print('skipping', screen_line) - replacement in source_text.lua at line 24
local f = Text.screen_line(line, line_cache, i)--? print('text.draw:', f, 'at', line_index,pos, 'after', x,y)local frag_len = utf8.len(f)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) - replacement in source_text.lua at line 49
for frag in f:gmatch('%S*%s*') dofor frag in screen_line:gmatch('%S*%s*') do - replacement in source_text.lua at line 64
Text.draw_cursor(State, State.left+Text.x(f, State.cursor1.pos-pos+1), y)Text.draw_cursor(State, State.left+Text.x(screen_line, State.cursor1.pos-pos+1), y)