switch to line index in a function
[?]
Jul 17, 2022, 4:10 PM
ODLKHO7BO2AODYO2OEQ6D4NSNBT5GR3CKLUXWMDLRYXL7DJOI7BACDependencies
- [2]
MXA3RZYKdeduce left/right from state where possible - [3]
GCEF4N3Vstop repeatedly checking for line wrapping - [4]
NDHQN23Gdone passing left/right margins everywhere - [5]
2ZYV7D3Whandle tab characters - [6]
4CTZOJPCstop pretending globals are local - [7]
LERERVPHkeep one screen line of overlap on pagedown - [8]
3OKKTUT4up and down arrow now moving by screen line where possible - [9]
M6TH7VSZrip out notion of Line_width - [10]
BULPIBEGbeginnings of a module for the text editor - [11]
2H67P75Xswitch arg for a function - [12]
UV4EWOLYadd args to some functions - [13]
H2DPLWMVsnapshot: wrapping long lines at word boundaries - [14]
3MAZEQK5add state arg to Text.textinput - [15]
EGH7XDBKsupport non-text lines in Text.to2 - [16]
UHB4GARJleft/right margin -> left/right coordinates - [17]
JY4VK7L2rename - [18]
HYEAFRZ2split mouse_pressed events between Text and Drawing - [19]
R53OF3ONone bug I've repeatedly run into while testing with Moby Dick - [20]
MYC7XR5Qbugfix: lines that aren't drawn from the start - [21]
Z5HLXU4Padd state arg to a few functions - [22]
CBPV5SSIstop handling nil screen_line_starting_pos everywhere - [23]
2RXZ3PGObeginning of a new approach to scroll+wrap - [24]
ESETRNLBbugfix: printing the first part of a line at the bottom made it seem non-wrapping - [25]
P66MRF3Ubugfix: don't append metadata when it already exists - [26]
KZ5GAYRPthis fixes the immediate regression - [27]
DRFE3B3Zmouse buttons are integers, not strings - [28]
QCPXQ2E3add state arg to a few functions - [29]
4VKEE43Zbugfix - [30]
5UG5PQ6Kundo commit 861c57b533 - [31]
WLJCIXYMadd state arg to a few functions - [32]
SVJZZDC3snapshot - no, that's all wrong - [33]
242L3OQXbugfix: ensure Cursor_line is always on a text line - [34]
WOXIYUTLbugfix: manage screen_top and cursor when resizing - [35]
PFT5Y2ZYmove - [36]
CTJ3IZGSadd args to some functions - [37]
SPSW74Y5add state arg to Text.keychord_pressed - [38]
CCYSVZA2bugfix: BSOD in #4. - [39]
LAW2O3NWextract variable Margin_left - [40]
ZPUQSPQPextract a few methods - [41]
HOSPP2ANcrisp font rendering - [42]
LF7BWEG4group all editor globals - [43]
OYXDYPGSget rid of debug variables
Change contents
- replacement in text.lua at line 24
Text.populate_screen_line_starting_pos(line, State.left, State.right)Text.populate_screen_line_starting_pos(State, line_index) - replacement in text.lua at line 145
Text.populate_screen_line_starting_pos(State.lines[State.cursor1.line], State.left, State.right)Text.populate_screen_line_starting_pos(State, State.cursor1.line) - replacement in text.lua at line 178
Text.populate_screen_line_starting_pos(State.lines[State.cursor1.line], State.left, State.right)Text.populate_screen_line_starting_pos(State, State.cursor1.line) - replacement in text.lua at line 417
Text.populate_screen_line_starting_pos(State.lines[State.cursor1.line], State.left, State.right)Text.populate_screen_line_starting_pos(State, State.cursor1.line) - replacement in text.lua at line 621
Text.populate_screen_line_starting_pos(State.lines[State.cursor1.line], State.left, State.right)Text.populate_screen_line_starting_pos(State, State.cursor1.line) - replacement in text.lua at line 632
Text.populate_screen_line_starting_pos(State.lines[State.cursor1.line], State.left, State.right)Text.populate_screen_line_starting_pos(State, State.cursor1.line) - replacement in text.lua at line 701
Text.populate_screen_line_starting_pos(line, State.left, State.right)Text.populate_screen_line_starting_pos(State, line_index) - replacement in text.lua at line 843
Text.populate_screen_line_starting_pos(State.lines[pos1.line], State.left, State.right)Text.populate_screen_line_starting_pos(State, pos1.line) - replacement in text.lua at line 907
Text.populate_screen_line_starting_pos(State.lines[pos2.line-1], State.left, State.right)Text.populate_screen_line_starting_pos(State, pos2.line-1) - replacement in text.lua at line 912
function Text.populate_screen_line_starting_pos(line, left, right)function Text.populate_screen_line_starting_pos(State, line_index)local line = State.lines[line_index] - replacement in text.lua at line 919
Text.compute_fragments(line, left, right)Text.compute_fragments(line, State.left, State.right) - replacement in text.lua at line 922
local x = leftlocal x = State.left - replacement in text.lua at line 928
if x + frag_width > right thenx = leftif x + frag_width > State.right thenx = State.left - edit in text.lua at line 942
Text.populate_screen_line_starting_pos(State, State.screen_top1.line) - edit in text.lua at line 944
Text.populate_screen_line_starting_pos(line, State.left, State.right)