Bug fixes:
flush queue/formatting/preview when repositioning cursor