diff options
Diffstat (limited to 'editors')
-rw-r--r-- | editors/sed.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/editors/sed.c b/editors/sed.c index 8c77a0ffc..2b01ec7ff 100644 --- a/editors/sed.c +++ b/editors/sed.c @@ -857,7 +857,11 @@ static void process_file(FILE * file) if (tmp) { *tmp = '\0'; + puts(pattern_space); + *tmp = '\n'; + break; } + /* Fall Through */ } case 'p': /* Write the current pattern space to output */ puts(pattern_space); |