Bug fix: do not move cursor to last (empty) line in the entry buffer.