Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ed: better relative addresses (#902)
* The initial implementation of relative addresses was too limited * GNU and OpenBSD ed allow repeated +n, mixed +n and --++, as well as basing address from dot, dollar or a marked address * tests.. ++1= invalid: ambiguous += current +1 .+= current + 1 +1= current + 1 .+1= current + 1 .+3++= current + 5: ++ follows +n $---= end - 3 $-3= end - 3 $-3+3= end: repeated +n 'x-5,'x+5nl list 5 lines of context around marked line x
- Loading branch information