Always apply commands with no specified range.
diff --git a/sed.c b/sed.c
index 73ed058..e7208b0 100644
--- a/sed.c
+++ b/sed.c
@@ -608,6 +608,10 @@
* entry point into sedding...
*/
if (
+ /* no range necessary */
+ (sed_cmds[i].beg_line == 0 && sed_cmds[i].end_line == 0 &&
+ sed_cmds[i].beg_match == NULL &&
+ sed_cmds[i].end_match == NULL) ||
/* this line number is the first address we're looking for */
(sed_cmds[i].beg_line && (sed_cmds[i].beg_line == linenum)) ||
/* this line matches our first address regex */