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