The marriage was so distasteful to Richard, that he is said to have altered his will, or at any rate, to have intended to do so.
Richard's dislike of his marriage led him to potentially change his will, or at least have that intention.