aboutsummaryrefslogtreecommitdiff
path: root/editors/sed.c
diff options
context:
space:
mode:
Diffstat (limited to 'editors/sed.c')
-rw-r--r--editors/sed.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/editors/sed.c b/editors/sed.c
index fe1c0dbae..1c026d30b 100644
--- a/editors/sed.c
+++ b/editors/sed.c
@@ -322,7 +322,7 @@ static int parse_edit_cmd(struct sed_cmd *sed_cmd, const char *editstr)
322 * 322 *
323 */ 323 */
324 324
325 if (editstr[1] != '\\' && (editstr[2] != '\n' || editstr[2] != '\r')) 325 if (editstr[1] != '\\' || (editstr[2] != '\n' && editstr[2] != '\r'))
326 error_msg_and_die("bad format in edit expression"); 326 error_msg_and_die("bad format in edit expression");
327 327
328 /* store the edit line text */ 328 /* store the edit line text */