Ctrl-w refactored into linenoiseEditDeletePrevWord().