From acab50e08a05837df7cf2837b2aeae26d9eec6c0 Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Mon, 18 May 2009 07:42:50 +0000 Subject: [PATCH] fixed a minor bug in handle the D command in sed --- qse/lib/utl/sed.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qse/lib/utl/sed.c b/qse/lib/utl/sed.c index 81260900..fbd77eb6 100644 --- a/qse/lib/utl/sed.c +++ b/qse/lib/utl/sed.c @@ -2080,6 +2080,9 @@ static qse_sed_cmd_t* exec_cmd (qse_sed_t* sed, qse_sed_cmd_t* cmd) /* if a new line is found */ qse_str_del (&sed->e.in.line, 0, nl - QSE_STR_PTR(&sed->e.in.line) + 1); + + /* arrange to start the the next cycle */ + jumpto = sed->cmd.cur; break; }