switch to line index in a function
[?]
Jul 17, 2022, 4:19 PM
FKNXK2OAH4U2V2TXCHWE4C3Z5DROBIIPSXUWFKP7Q3DSNOKFFL5ACDependencies
- [2]
52ZZ5TIEswitch to line index in a function - [3]
LF7BWEG4group all editor globals - [4]
YJJ4X4JGbugfix: avoid scrolling on 'end' - [5]
HYEAFRZ2split mouse_pressed events between Text and Drawing - [6]
QLTJG7Q3indent - [7]
LXTTOB33extract a couple of files - [8]
QCPXQ2E3add state arg to a few functions - [9]
WLJCIXYMadd state arg to a few functions - [10]
2L5MEZV3experiment: new edit namespace - [11]
U52E2XZNfix a crash - [12]
LNUHQOGHstart passing in Editor_state explicitly - [13]
BOFNXP5Gclicking now moves the cursor even on long, wrapped lines - [14]
K4OBZSHEadd args to some functions - [15]
UHB4GARJleft/right margin -> left/right coordinates - [16]
PK5U572Cdrop some extra args - [17]
MXA3RZYKdeduce left/right from state where possible - [18]
5FW7YOFThighlight selection while dragging - [19]
WOXIYUTLbugfix: manage screen_top and cursor when resizing - [*]
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),