Moved retrieval of active editor and active page some lines up to prevent a linux...