For saving to disk yes, but not on every keystroke. An autosave is scheduled and then the save is performed after some period of time. The underlying scheduling and behavior is provided by macOS framework code.
If you add a line then rows after it in the array get shifted.
If you add a line then rows after it in the array get shifted.