Break on semi-colon

list mode can will break the loop if return on empty line or last char
of line is semi-colon