Put cursor at EOL when navigating history