-
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.
ed: save space in editor buffer (#938)
* The substitution s/\z/NEW/ produced the unwanted outcome of $lines[$x] containing two lines of text * Address this by not including trailing newlines in the editor buffer anymore * Introduce helper function get_terminated_line() which adds the newline * Now s/\z/NEW/ is interpreted the same as s/$/NEW/, i.e. append NEW to end of line * Bump version number in case of regressions * Removing the newlines from the editor buffer also reduces memory usage, but that is not the main intent of this patch
- Loading branch information
Showing
1 changed file
with
21 additions
and
17 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