source: load cursor position from settings

[?]
Sep 19, 2022, 7:17 AM
SDO4DHNUAERLBZOAVCFDGN65T4DX2PDY5RVLZKDOL6EZ62G5K67QC

Dependencies

  • [2] AOZX2G5F source: no commandline args
  • [3] KKMFQDR4 editing source code from within the app
  • [4] JMUD7T3O get rid of ugly side-effects in tests

Change contents

  • edit in source.lua at line 89
    [2.114]
    [3.167813]
    Editor_state.screen_top1 = File_navigation.cursors[Editor_state.filename].screen_top1
    Editor_state.cursor1 = File_navigation.cursors[Editor_state.filename].cursor1
  • replacement in source.lua at line 132
    [3.169643][3.169643:169733]()
    Editor_state.screen_top1 = settings.screen_top
    Editor_state.cursor1 = settings.cursor
    [3.169643]
    [3.169733]
    File_navigation.cursors = settings.cursors
    Editor_state.screen_top1 = File_navigation.cursors[Editor_state.filename].screen_top1
    Editor_state.cursor1 = File_navigation.cursors[Editor_state.filename].cursor1