Delete and ctrl-d refactored into linenoiseEditDelete()