Merge upstream into main
[?]
Jul 20, 2022, 2:52 PM
73XNHEKNPTKPDNB2B6QWLRRQJ37X5AZ6FTBVL5ZBTDYP2Z2K45PQCDependencies
- [2]
7CEOB56DMerge upstream into main - [3]
UPCIYZEUdrop an unnecessary level of indent - [4]
2RXZ3PGObeginning of a new approach to scroll+wrap - [5]
MP2TBKU6bugfix: crash in Text.up() after return - [6]
EGH7XDBKsupport non-text lines in Text.to2 - [7]
IMEJA43Lsnapshot - [8]
PNGWLAFNMerge upstream into main - [9]
APYPFFS3call edit rather than App callbacks in tests - [10]
MXA3RZYKdeduce left/right from state where possible - [11]
CZB4CK2Rbugfix - [12]
NDHQN23Gdone passing left/right margins everywhere - [13]
356GY7IQunify two similar functions - [14]
YW2GO3U4bugfix: crash in Text.up() after return - [15]
LF7BWEG4group all editor globals - [16]
S2YQBEYCsnapshot: test for a new regression - [17]
M6TH7VSZrip out notion of Line_width - [18]
IWYLK45Kclicking to the right of a line within line width - [19]
QYIFOHW3first test! - [20]
5DOTWNVMright margin - [21]
HGC5RGJPswitch to line index in a function - [22]
27DROQW2Merge upstream into main - [23]
PFT5Y2ZYmove - [24]
QCPXQ2E3add state arg to a few functions - [25]
KURLAXXIclean up some prints - [26]
HOSPP2ANcrisp font rendering - [27]
ULKLJBN6couple of renames - [28]
EMHRPJ3Rno, that's not right - [29]
LXTTOB33extract a couple of files - [30]
4VKEE43Zbugfix - [31]
DGK5BPVIbugfix: UTF-8 in compute_fragments - [32]
GL4Q5WCVkeep text from overflowing right margin - [33]
DRFE3B3Zmouse buttons are integers, not strings - [*]
BULPIBEGbeginnings of a module for the text editor
Change contents
- replacement in text_tests.lua at line 533
check_eq(Editor_state.cursor1.pos, 15, 'F - test_click_on_wrapping_line_containing_non_ascii/cursor') -- one more than the number of UTF-8 code-pointscheck_eq(Editor_state.cursor1.pos, 15, 'F - test_click_past_end_of_wrapping_line_containing_non_ascii/cursor') -- one more than the number of UTF-8 code-points - edit in text_tests.lua at line 1968
check_eq(Editor_state.cursor1.pos, 15, 'F - test_click_past_end_of_wrapping_line_containing_non_ascii/cursor') -- one more than the number of UTF-8 code-points - resolve order conflict in text_tests.lua at line 1968[4.43800]
- edit in text.lua at line 99[4.910]→[4.3:77](∅→∅),[4.910]→[4.3:77](∅→∅),[4.910]→[4.3:77](∅→∅),[4.77]→[4.6:6](∅→∅),[4.77]→[4.6:6](∅→∅)
local boffset = Text.offset(frag, bpos+1) -- byte _after_ bpos - edit in text.lua at line 839
local offset = Text.offset(s, pos)