Author Topic: macro rename little bug  (Read 1221 times)

0 Members and 1 Guest are viewing this topic.

Offline Mars

  • Operator
  • Tireless poster
  • *****
  • Posts: 1890
    • View Profile
macro rename little bug
« on: September 04, 2009, 09:59:21 PM »
main.pas
Quote
   if name = 'rename' then
      if renameFile(p, par(1))
      and not stopOnMacroRename then // should we stop recursion?
        try
          // by default, we'll stop after first stacked [on macro rename], but recursive=1 will remove this limit
          stopOnMacroRename:=isFalse(par('recursive'));
          runEventScript('on macro rename', toSA(['%old-name%',p,'%new-name%',par(1)]));
          spaceIf(TRUE);
        finally
          stopOnMacroRename:=FALSE;
        end
      else result:=''// add by mars

Else ....when a rename failed, the macro is replaced by <div class=macroerror>macro error: ' ...

Offline rejetto

  • Administrator
  • Tireless poster
  • *
  • Posts: 12949
    • View Profile
Re: macro rename little bug
« Reply #1 on: September 05, 2009, 03:02:26 PM »
thank you mars