can someone explain why girls always seem to come back even after disrespecting you and treating you like shit if you decide to walk away?

ive seen this in every girl ive dated.

how do you know they are actually trying to fix shit or just fishing for validation?