Fix insert mode for console editing.