code: def delete_char(event):
      " Delete character before the cursor. "
      deleted = event.current_buffer.delete(count=event.arg)
      if not deleted:
          event.cli.output.bell(f delete_char(event):
      " Delete character before the cursor. "
      deleted = event.current_buffer.delete(count=event.arg)
      if not deleted:
          event.cli.output.bell()
docs: Delete character before the cursor.