@RaymondLim, sorry I still can't repro the issue with your new steps.  The test you are using is very basic so it surprises me that it is failing.  It's not like you are jumping around between different main and inline editors or anything complex.  Is it possible there is something out of sync with my pull request or your patched machine?

I'm going to try loading a fresh build and apply the patch myself and see if I can repro the issue that way.  Would it be possible to have someone else try to patch on your end and see if they have the same problem?