Can't type using IME before header on Windows/Mac

Steps to reproduce

  1. Put the cursor at the very beginning of a line of Header (before “#”)
  2. Use Chinese IME and type several times

Expected result

Type normally

Actual result

I can’t type and the cursor got frozen.

Environment

Windows 10 20H2/macOS 12.3
1.0.3 Sandbox Vault


Additional information

ScreenRecording

same issue, please consider fixing it asap