Explicitly refresh the inline editor to correct the selection or cursor location change.

This fixes #7258.