Make toggling script call macros restore previous editor setting