Check the last line even if it has not EOL; issue #273