simpler implementation of bugfix #2
Dependencies
- [2]
OXIU3SJ2bugfix #3, attempt #2 in search UI - [3]
O7YTBRQYbugfix: restart search on backspace - [4]
2L5MEZV3experiment: new edit namespace - [5]
KKMFQDR4editing source code from within the app - [6]
NVSC4N4Kchange a helper slightly - [7]
4FTOQOPZbugfix #2 in search UI - [8]
IENTL2ITindent
Change contents
- edit in source_edit.lua at line 148
if State.lines[line].mode == 'text' thenState.cursor1.line = lineState.cursor1.pos = 1breakendendendfunction edit.put_cursor_on_next_text_line_wrapping_around_if_necessary(State)local line = State.cursor1.linelocal max = #State.linesfor _ = 1, max-1 doline = (line+1) % max - edit in source_edit.lua at line 153
endendfunction edit.put_cursor_on_next_text_loc_wrapping_around_if_necessary(State)local cursor_line = State.lines[State.cursor1.line].dataif State.cursor1.pos <= utf8.len(cursor_line) thenState.cursor1.pos = State.cursor1.pos + 1elseedit.put_cursor_on_next_text_line_wrapping_around_if_necessary(State) - replacement in source_edit.lua at line 414
edit.put_cursor_on_next_text_loc_wrapping_around_if_necessary(State)Text.right(State) - edit in edit.lua at line 146[3.2150]→[3.2150:2255](∅→∅),[3.2255]→[3.295:315](∅→∅),[3.295]→[3.295:315](∅→∅),[3.315]→[3.2256:2455](∅→∅)
if State.lines[line].mode == 'text' thenState.cursor1.line = lineState.cursor1.pos = 1breakendendendfunction edit.put_cursor_on_next_text_line_wrapping_around_if_necessary(State)local line = State.cursor1.linelocal max = #State.linesfor _ = 1, max-1 doline = (line+1) % max - edit in edit.lua at line 151
endendfunction edit.put_cursor_on_next_text_loc_wrapping_around_if_necessary(State)local cursor_line = State.lines[State.cursor1.line].dataif State.cursor1.pos <= utf8.len(cursor_line) thenState.cursor1.pos = State.cursor1.pos + 1elseedit.put_cursor_on_next_text_line_wrapping_around_if_necessary(State) - replacement in edit.lua at line 408
edit.put_cursor_on_next_text_loc_wrapping_around_if_necessary(State)Text.right(State)