remove some support for long lines from source editor
[?]
Apr 20, 2023, 4:53 AM
VDFARWQXPIQUTVRFLZ6QOYSG2ON7CLQVKRHJJZZAEMO7QLTNXXHQCDependencies
- [2]
G54H3YG2get rid of all bifold text - [3]
KKMFQDR4editing source code from within the app - [4]
OI4FPFINsupport drawings in the source editor - [*]
BULPIBEGbeginnings of a module for the text editor - [*]
242L3OQXbugfix: ensure Cursor_line is always on a text line
Change contents
- edit in text.lua at line 620[7.226][7.226]
if State.cursor1.pos == nil thenState.cursor1.pos = 1end - replacement in source_text.lua at line 432[3.108390]→[2.2497:2660](∅→∅),[2.2660]→[3.108390:108443](∅→∅),[3.108390]→[3.108390:108443](∅→∅),[3.108443]→[2.2661:2754](∅→∅),[2.2754]→[3.108443:108572](∅→∅),[3.108443]→[3.108443:108572](∅→∅),[3.108572]→[2.2755:2842](∅→∅),[2.2842]→[3.108659:108665](∅→∅),[3.6889]→[3.108659:108665](∅→∅),[3.108659]→[3.108659:108665](∅→∅)
-- If a line/paragraph gets to a page boundary, I often want to scroll-- before I get to the bottom.-- However, only do this if it makes forward progress.local bot2 = Text.to2(State, State.screen_bottom1)if bot2.screen_line > 1 thenbot2.screen_line = math.max(bot2.screen_line-10, 1)endlocal new_top1 = Text.to1(State, bot2)if Text.lt1(State.screen_top1, new_top1) thenState.screen_top1 = new_top1elseState.screen_top1 = {line=State.screen_bottom1.line, pos=State.screen_bottom1.pos}endState.screen_top1 = {line=State.screen_bottom1.line, pos=State.screen_bottom1.pos} - edit in source_text.lua at line 678
endif State.cursor1.pos == nil thenState.cursor1.pos = 1