From 96a18332316568ebccaa186ffb519b48c4310714 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Mon, 19 Apr 2010 22:36:07 -0400 Subject: sed: fix c cmd Signed-off-by: Denys Vlasenko --- editors/sed.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editors') diff --git a/editors/sed.c b/editors/sed.c index e5e1877..302a156 100644 --- a/editors/sed.c +++ b/editors/sed.c @@ -1031,7 +1031,7 @@ static void process_files(void) case 'c': /* Only triggers on last line of a matching range. */ if (!sed_cmd->in_match) - sed_puts(sed_cmd->string, NO_EOL_CHAR); + sed_puts(sed_cmd->string, '\n'); goto discard_line; /* Read file, append contents to output */ -- cgit v1.1