diff options
| author | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-09-17 14:14:26 +0200 |
|---|---|---|
| committer | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-09-17 14:14:26 +0200 |
| commit | 6d28cf285f9944eb26c7ed0efcce558521b51cb9 (patch) | |
| tree | 6fac77b186ab34300528bba80350ca48a655b12e /internal/engine/plan_test.go | |
| parent | ed86f44a926fd1f0d438cbe5e2e10ad5b063db55 (diff) | |
| download | krino-6d28cf285f9944eb26c7ed0efcce558521b51cb9.tar.gz krino-6d28cf285f9944eb26c7ed0efcce558521b51cb9.zip | |
editing one form no longer takes its neighbour with it
A form's span was whole lines, which is wrong the moment two forms
share one.
Delete: "(exclude A) (exclude B)" on one line, delete the first, both
went. The dialog named one. The file still parsed, the live check said
no errors and Save lit, so an exclusion could disappear silently and
the next run would sort the files it had been protecting.
Clear a setting: the same shape, and the Settings window walked into it
itself - it writes "(defaults\n (case ignore))", so the closing paren
of defaults sits on the setting's line, and putting that setting back
to "default" deleted the line and broke the file it had just written.
Every later change then silently reverted until Settings was reopened.
A hand-written "(defaults (case ignore) (fold yes))" lost fold the same
way, and that one still loaded, so it was saveable.
Both now take the whole line only when the line holds nothing else, and
otherwise take the form and the spaces after it. One helper, used by
the main file and by a directory's settings alike.
Diffstat (limited to 'internal/engine/plan_test.go')
0 files changed, 0 insertions, 0 deletions
