Page 2 of 2

Re: # repeat alias

Posted: Sat Feb 24, 2018 1:47 pm
by Jor'Mox
I think you have it right, the matches table is overwritten when a new alias is called, so you need to save the relevant values before you call expandAlias.

Re: # repeat alias

Posted: Sat Feb 24, 2018 3:33 pm
by ulysses
I fixed this my making matches local like this:

Code: Select all

local myMatches = matches
for i = 1, tonumber(myMatches[2]) do
	expandAlias(myMatches[3])
end
Perhaps this could be put in the package above at the start of this thread?

Thanks!
U

Re: # repeat alias

Posted: Thu Sep 03, 2020 8:29 pm
by hsima
Patched and tested, seems to work as desired.