place cursor at the end of line when using up/down arrow, fixes #62