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