richedit: Fixed check for nOffset at the end of the cursor's run. For some reason the code previously mixed up a selection cursor with the result cursor. The problem seemed to have corrected itself before as a result of conversion between offsets and cursors, but my recent changes made this bug more severe.