-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Command suffix was already saved into $args[0] so inventing $commandsuf was a bad idea (remove it) * Detect whitespace after $command character correctly by making it a capture variable in command regex * "w" command has 3 different usages so handle them all correctly * usage1: no address (w filename): write entire buffer to file * usage2: one address: (123w filename): write single line from buffer to file * usage3: address range: (12,13w filename): write only the lines in inclusive range to file * style: declare filehandle as a "my" variable in edWrite()
- Loading branch information
Showing
1 changed file
with
26 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters