diff -u nano/winio.c nano-patched/winio.c --- nano/winio.c Mon Oct 7 10:09:54 2002 +++ nano-patched/winio.c Mon Oct 7 10:03:03 2002 @@ -655,9 +655,10 @@ /* Translate the match to the beginning of the line. */ startmatch.rm_so += k; startmatch.rm_eo += k; - if (startmatch.rm_so == startmatch.rm_eo) + if (startmatch.rm_so == startmatch.rm_eo) { + startmatch.rm_eo++; statusbar(_("Refusing 0 length regex match")); - else if (startmatch.rm_so < start + COLS && + } else if (startmatch.rm_so < start + COLS && startmatch.rm_eo > start) { x_start = startmatch.rm_so - start; if (x_start < 0)