handle missing cursors in settings
[?]
Sep 19, 2022, 7:41 AM
S3PNFXTB4EF4PR4RMDK3YX5HTBJP2U6GRBX5UWAMUFBC5CRPOWZACDependencies
- [2]
SDO4DHNUsource: load cursor position from settings - [3]
JMUD7T3Oget rid of ugly side-effects in tests - [4]
KKMFQDR4editing source code from within the app
Change contents
- replacement in source.lua at line 132
File_navigation.cursors = settings.cursorsEditor_state.screen_top1 = File_navigation.cursors[Editor_state.filename].screen_top1Editor_state.cursor1 = File_navigation.cursors[Editor_state.filename].cursor1if settings.cursors thenFile_navigation.cursors = settings.cursorsEditor_state.screen_top1 = File_navigation.cursors[Editor_state.filename].screen_top1Editor_state.cursor1 = File_navigation.cursors[Editor_state.filename].cursor1else-- migrate old settingsEditor_state.screen_top1 = {line=1, pos=1}Editor_state.cursor1 = {line=1, pos=1}end