Properly fix the readline-like word delete behavior