stop recomputing Cursor_x now that we're saving it
[?]
May 21, 2022, 3:32 AM
HBZ2UCUFM6EYLFZGUQVJDCLANO4UXYMBOU3TFPB2JASJMB53ZGXACDependencies
- [2]
C42QQZSFanother piece of support for line wrapping in cursor up - [3]
76AIXR7Hbugfix - [4]
MGT5FTJ3first stab at supporting wrapping in cursor up - [5]
5ED3YGHWplanning out cursor up/down over wrapped lines - [6]
3CSIZJ33clearer comments - [7]
XNFTJHC4split keyboard handling between Text and Drawing - [8]
SVJZZDC3snapshot - no, that's all wrong - [*]
BULPIBEGbeginnings of a module for the text editor
Change contents
- edit in text.lua at line 239
local old_x = Text.cursor_x(Lines[new_cursor_line].data, Cursor_pos) - replacement in text.lua at line 241
Cursor_pos = Text.nearest_cursor_pos(Lines[Cursor_line].data, old_x)Cursor_pos = Text.nearest_cursor_pos(Lines[Cursor_line].data, Cursor_x) - replacement in text.lua at line 253
Cursor_pos = screen_line_starting_pos + Text.nearest_cursor_pos(s, old_x) - 1Cursor_pos = screen_line_starting_pos + Text.nearest_cursor_pos(s, Cursor_x) - 1 - edit in text.lua at line 281
local old_x = Text.cursor_x(Lines[new_cursor_line].data, Cursor_pos) - replacement in text.lua at line 282
Cursor_pos = Text.nearest_cursor_pos(Lines[Cursor_line].data, old_x)Cursor_pos = Text.nearest_cursor_pos(Lines[Cursor_line].data, Cursor_x)