add the 'n' command
diff --git a/editors/sed.c b/editors/sed.c
index b40aa8e..5b08c8e 100644
--- a/editors/sed.c
+++ b/editors/sed.c
@@ -382,7 +382,7 @@
 {
 	/* if it was a single-letter command that takes no arguments (such as 'p'
 	 * or 'd') all we need to do is increment the index past that command */
-	if (strchr("pqd=", sed_cmd->cmd)) {
+	if (strchr("npqd=", sed_cmd->cmd)) {
 		cmdstr++;
 	}
 	/* handle (s)ubstitution command */
@@ -807,6 +807,9 @@
 					case 'q':	/* Branch to end of script and quit */
 						free(line);
 						return;
+					case 'n':	/* Read next line from input */
+						i = ncmds;
+						break;
 				}
 			}