Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* It is valid usage to start ed with a filename that doesn't exist; ed is expected to start with an empty buffer and the default filename variable set * Today I found that commands 0i and 0a were resulting in the first line of input being lost * When debugging this I discovered lines-list was empty when ed was started with a file argument that doesn't exist * A placeholder item $lines[0] is expected to be populated * edEdit() was returning early because the file doesn't exist * Fix this by initialising $lines[0] at start of program, i.e. before the 1st edEdit() call
- Loading branch information