fix for unexpected point movement

bug fixed: point moves to previous char when called at whitespace-only line