bugfix: crash in Text.up() after return
[?]
Jun 19, 2022, 4:03 PM
MP2TBKU6CNDMZKENYMBV62F5KQ27ZWEVPVRFS2RESVDQQT2IRR4ACDependencies
- [2]
HIKLULFQextract a function - [3]
UFIUYYYVadditional logging for an active bug - [4]
DGK5BPVIbugfix: UTF-8 in compute_fragments - [5]
CPZGQT72go through and fix similar issues - [6]
NZKYPBSKcheck for scroll when just typing - [7]
CG3264MMmove - [8]
ULKLJBN6couple of renames - [9]
Z4XRNDTRfind text - [10]
FHSZYAZ2more precise search highlighting - [11]
GN3IF4WFbugfix: pasting newlines - [12]
PFT5Y2ZYmove - [13]
SLLR6KKIbugfix for non-ASCII - [14]
XNFTJHC4split keyboard handling between Text and Drawing - [15]
JY4VK7L2rename - [16]
2POFQQLWkeep cursor on screen when pressing 'down' - [17]
BYG5CEMVsupport for naming points - [18]
QYIFOHW3first test! - [19]
537TQ2QNsome more logging - [20]
IMEJA43Lsnapshot - [21]
ZPUQSPQPextract a few methods - [22]
KOYAJWE4extract a couple more methods - [23]
5L7K4GBDclicking to the right of a wrapped line - [24]
H2DPLWMVsnapshot: wrapping long lines at word boundaries - [25]
DHI6IJCNselecting text and deleting selections - [26]
2RXZ3PGObeginning of a new approach to scroll+wrap - [27]
V5MJRFOZbugfix: down arrow doesn't scroll up unnecessarily - [28]
2ZYV7D3Whandle tab characters - [29]
TKFSYQ2Zup arrow to search previous - [30]
7SFHSB47rename - [31]
VJ77YABHmore efficient undo/redo - [32]
HOSPP2ANcrisp font rendering - [33]
NP7PIUBTbugfix: restore state after C-f (find) - [34]
CUIV2LE5some typos - [35]
YW5324Q3bugfix: cut (C-x) without first selecting anything - [36]
IRCKL6VNextract scrolling logic out of insert_at_cursor - [37]
PR4KIAZDfirst stab at equally hacky cursor down support - [38]
73OCE2MCafter much struggle, a brute-force undo - [39]
OYXDYPGSget rid of debug variables - [40]
SQLVYKVJrename - [41]
BOFNXP5Gclicking now moves the cursor even on long, wrapped lines - [42]
LXTTOB33extract a couple of files - [43]
O7QH4N4Wspeeding up copy, attempt 1 - [44]
AYE2VEGJextract a couple of methods - [45]
TVM2WIHHbugfix: autosave and undo in a couple of cases - [46]
BTKAW76Lrename - [47]
KOTI3MFGbugfix in previous commit - [48]
4VKEE43Zbugfix - [*]
BULPIBEGbeginnings of a module for the text editor - [*]
OTIBCAUJlove2d scaffold
Change contents
- replacement in text.lua at line 116
local boffset = utf8.offset(frag, bpos+1) -- byte _after_ bposassert(boffset)local boffset = Text.offset(frag, bpos+1) -- byte _after_ bpos - replacement in text.lua at line 158[6.51]→[6.171:191](∅→∅),[6.55]→[6.171:191](∅→∅),[6.99]→[6.171:191](∅→∅),[3.118]→[6.171:191](∅→∅),[6.6357]→[6.171:191](∅→∅),[6.171]→[6.171:191](∅→∅),[6.191]→[6.459:485](∅→∅),[6.485]→[6.56:125](∅→∅),[6.125]→[6.285:292](∅→∅),[6.556]→[6.285:292](∅→∅),[6.285]→[6.285:292](∅→∅),[6.292]→[6.126:146](∅→∅),[6.146]→[6.312:318](∅→∅),[6.312]→[6.312:318](∅→∅),[6.318]→[3.119:248](∅→∅)
local byte_offsetif Cursor1.pos > 1 thenbyte_offset = utf8.offset(Lines[Cursor1.line].data, Cursor1.pos)elsebyte_offset = 1endif byte_offset == nil thenprint(Cursor1.line, Cursor1.pos, byte_offset, Lines[Cursor1.line].data)assert(false)endlocal byte_offset = Text.offset(Lines[Cursor1.line].data, Cursor1.pos) - replacement in text.lua at line 167
--? print(chord)--? print('chord') - replacement in text.lua at line 373
local byte_offset = utf8.offset(Lines[Cursor1.line].data, Cursor1.pos)--? print(Cursor1.line, Cursor1.pos, #Lines[Cursor1.line].data)--? print(Lines[Cursor1.line].data)assert(byte_offset)local byte_offset = Text.offset(Lines[Cursor1.line].data, Cursor1.pos) - replacement in text.lua at line 455
local screen_line_starting_byte_offset = utf8.offset(Lines[Cursor1.line].data, screen_line_starting_pos)assert(screen_line_starting_byte_offset)local screen_line_starting_byte_offset = Text.offset(Lines[Cursor1.line].data, screen_line_starting_pos) - replacement in text.lua at line 474
local new_screen_line_starting_byte_offset = utf8.offset(Lines[Cursor1.line].data, new_screen_line_starting_pos)assert(new_screen_line_starting_byte_offset)local new_screen_line_starting_byte_offset = Text.offset(Lines[Cursor1.line].data, new_screen_line_starting_pos) - replacement in text.lua at line 513
local new_screen_line_starting_byte_offset = utf8.offset(Lines[Cursor1.line].data, new_screen_line_starting_pos)assert(new_screen_line_starting_byte_offset)local new_screen_line_starting_byte_offset = Text.offset(Lines[Cursor1.line].data, new_screen_line_starting_pos) - replacement in text.lua at line 531
local offset = utf8.offset(Lines[Cursor1.line].data, Cursor1.pos)local offset = Text.offset(Lines[Cursor1.line].data, Cursor1.pos) - replacement in text.lua at line 543
local offset = utf8.offset(Lines[Cursor1.line].data, Cursor1.pos)local offset = Text.offset(Lines[Cursor1.line].data, Cursor1.pos) - replacement in text.lua at line 683
local screen_line_starting_byte_offset = utf8.offset(line.data, screen_line_starting_pos)assert(screen_line_starting_byte_offset)local screen_line_starting_byte_offset = Text.offset(line.data, screen_line_starting_pos) - replacement in text.lua at line 788
local offset = utf8.offset(s, pos)assert(offset)local offset = Text.offset(s, pos) - edit in text.lua at line 842
endfunction Text.offset(s, pos1)if pos1 == 1 then return 1 endlocal result = utf8.offset(s, pos1)if result == nil thenprint(Cursor1.line, Cursor1.pos, #Lines[Cursor1.line].data, Lines[Cursor1.line].data)print(pos1, #s, s)endassert(result)return result - replacement in select.lua at line 58
local lo_offset = utf8.offset(line.data, lo)local hi_offset = utf8.offset(line.data, hi)local pos_offset = utf8.offset(line.data, pos)local lo_offset = Text.offset(line.data, lo)local hi_offset = Text.offset(line.data, hi)local pos_offset = Text.offset(line.data, pos) - replacement in select.lua at line 140
local min_offset = utf8.offset(Lines[minl].data, minp)local max_offset = utf8.offset(Lines[maxl].data, maxp)local min_offset = Text.offset(Lines[minl].data, minp)local max_offset = Text.offset(Lines[maxl].data, maxp) - replacement in select.lua at line 168
local min_offset = utf8.offset(Lines[minl].data, minp)local max_offset = utf8.offset(Lines[maxl].data, maxp)local min_offset = Text.offset(Lines[minl].data, minp)local max_offset = Text.offset(Lines[maxl].data, maxp) - replacement in main.lua at line 425
local byte_offset = utf8.offset(Search_term, len)local byte_offset = Text.offset(Search_term, len) - replacement in main.lua at line 540
local byte_offset = utf8.offset(p.name, len-1)local byte_offset = Text.offset(p.name, len-1)