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