Add workaround for inconsistent cursor position with InfTextFixlineBuffer

This should be treated as a temporary solution until a proper propagation of
cursor position and selection through the InfTextBuffer interface is in place.