I'm close to a fix now. Essentially, the problem is that the CursorMovedI autocommand is not triggered while the popup menu is visible.
I'm close to a fix now. Essentially, the problem is that the CursorMovedI autocommand is not triggered while the popup menu is visible.