correctly restoring editable lines/sections for saved code - fixes #63