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