switch to line index in a function
[?]
Jul 17, 2022, 4:19 PM
FKNXK2OAH4U2V2TXCHWE4C3Z5DROBIIPSXUWFKP7Q3DSNOKFFL5ACDependencies
- [2]
52ZZ5TIEswitch to line index in a function - [3]
WLJCIXYMadd state arg to a few functions - [4]
QCPXQ2E3add state arg to a few functions - [5]
YJJ4X4JGbugfix: avoid scrolling on 'end' - [6]
LXTTOB33extract a couple of files - [7]
LF7BWEG4group all editor globals - [8]
5FW7YOFThighlight selection while dragging - [9]
HYEAFRZ2split mouse_pressed events between Text and Drawing - [10]
WOXIYUTLbugfix: manage screen_top and cursor when resizing - [11]
PK5U572Cdrop some extra args - [12]
BOFNXP5Gclicking now moves the cursor even on long, wrapped lines - [13]
QLTJG7Q3indent - [14]
U52E2XZNfix a crash - [15]
LNUHQOGHstart passing in Editor_state explicitly - [16]
UHB4GARJleft/right margin -> left/right coordinates - [17]
MXA3RZYKdeduce left/right from state where possible - [18]
K4OBZSHEadd args to some functions - [19]
2L5MEZV3experiment: new edit namespace - [*]
BULPIBEGbeginnings of a module for the text editor
Change contents
- replacement in text.lua at line 706
function Text.to_pos_on_line(State, line, mx, my)function Text.to_pos_on_line(State, line_index, mx, my)local line = State.lines[line_index] - edit in text.lua at line 968
local line = State.lines[State.screen_bottom1.line] - replacement in text.lua at line 970
pos=Text.to_pos_on_line(State, line, App.screen.width-5, App.screen.height-5),pos=Text.to_pos_on_line(State, State.screen_bottom1.line, App.screen.width-5, App.screen.height-5), - replacement in select.lua at line 97
return line_index, Text.to_pos_on_line(State, line, x,y)return line_index, Text.to_pos_on_line(State, line_index, x,y) - replacement in edit.lua at line 218
pos=Text.to_pos_on_line(State, line, x, y),pos=Text.to_pos_on_line(State, line_index, x, y), - replacement in edit.lua at line 252
pos=Text.to_pos_on_line(State, line, x, y),pos=Text.to_pos_on_line(State, line_index, x, y),