Search code examples
javascriptmacrosemeditor

EmEditor js macro: is it possible to suppress temporary updates in the editor?


I often write EmEditor macros with a lot of steps. In running such a long macro, content in the editor window would flash to update frequently.

Is it possible to suppress all temporary updates and directly show the final result in the editor window? Thank you!


Solution

  • use this on begin

    Redraw = false;

    This parameter stops the automatic refresh after an instruction that causes a display update, the refresh is only performed again at the end of the macro or until the user sets the parameter to true.