finish editing last line.