swap return values
[?]
Aug 17, 2022, 4:10 PM
NHNP76LGNIVNIDMSDILAKEVSWFQ4LKNCYXVQEGKKJ75TSRPEBVEQCDependencies
- [2]
TGHAJBESuse line cache for drawings as well - [3]
HTWAM4NZbugfix: scrolling in left/right movements - [4]
5ZA3BRNYadd state arg to a few functions - [5]
ILOA5BYFseparate data structure for each line's cache data - [6]
CUIV2LE5some typos - [7]
YJJ4X4JGbugfix: avoid scrolling on 'end' - [8]
UHB4GARJleft/right margin -> left/right coordinates - [9]
UV4EWOLYadd args to some functions - [10]
XNFTJHC4split keyboard handling between Text and Drawing - [11]
2H67P75Xswitch arg for a function - [12]
LXTTOB33extract a couple of files - [13]
CBPV5SSIstop handling nil screen_line_starting_pos everywhere - [14]
Z5HLXU4Padd state arg to a few functions - [15]
2RXZ3PGObeginning of a new approach to scroll+wrap - [16]
S2MISTTMadd state arg to a few functions - [17]
WLJCIXYMadd state arg to a few functions - [18]
ODLKHO7Bswitch to line index in a function - [19]
ZPUQSPQPextract a few methods - [20]
WOXIYUTLbugfix: manage screen_top and cursor when resizing - [21]
LF7BWEG4group all editor globals - [22]
MXA3RZYKdeduce left/right from state where possible - [23]
SVJZZDC3snapshot - no, that's all wrong - [24]
2TQR4PSYadd args to some functions - [25]
KOYAJWE4extract a couple more methods - [26]
4J2L6JMRbugfix: deleting a selection spanning pages - [*]
BULPIBEGbeginnings of a module for the text editor
Change contents
- replacement in text.lua at line 427
local screen_line_index,screen_line_starting_pos = Text.pos_at_start_of_cursor_screen_line(State)local screen_line_starting_pos, screen_line_index = Text.pos_at_start_of_cursor_screen_line(State) - replacement in text.lua at line 504
local screen_line_index, screen_line_starting_pos = Text.pos_at_start_of_cursor_screen_line(State)local screen_line_starting_pos, screen_line_index = Text.pos_at_start_of_cursor_screen_line(State) - replacement in text.lua at line 529
local _,botpos = Text.pos_at_start_of_cursor_screen_line(State)local botpos = Text.pos_at_start_of_cursor_screen_line(State) - replacement in text.lua at line 645[3.806]→[3.1621:1641](∅→∅),[3.6475]→[3.1621:1641](∅→∅),[3.74496]→[3.1621:1641](∅→∅),[3.1621]→[3.1621:1641](∅→∅)
return i,sposreturn spos,i - replacement in text.lua at line 987
--? local _,botpos = Text.pos_at_start_of_cursor_screen_line(State)--? local botpos = Text.pos_at_start_of_cursor_screen_line(State) - replacement in select.lua at line 136
_,State.screen_top1.pos = Text.pos_at_start_of_cursor_screen_line(State)State.screen_top1.pos = Text.pos_at_start_of_cursor_screen_line(State) - replacement in search.lua at line 65
local _, pos = Text.pos_at_start_of_cursor_screen_line(State, State.left, State.right)local pos = Text.pos_at_start_of_cursor_screen_line(State, State.left, State.right) - replacement in search.lua at line 113
local _, pos = Text.pos_at_start_of_cursor_screen_line(State, State.left, State.right)local pos = Text.pos_at_start_of_cursor_screen_line(State, State.left, State.right)