Fix caret painting for inline notes at the end of line
If the cursor is at the last column, we don't need to calculate the width because for inlineNotes at the end of line we dont use custom letter spacing. (See layoutLine)
If the cursor is at the last column, we don't need to calculate the width because for inlineNotes at the end of line we dont use custom letter spacing. (See layoutLine)