Fix cmd-left behaviour when cursor is at EOF