Improve performance of inline view

Added a check to return early for the common case where messages haven't
changed, and the cursor is on the same line.

Test Plan:
Moved a cursor around on the same line and it feels a bit faster.