@Skif-off No that worked out great, I am just glad that you were able to see my post, did not even realize I held Shift when hitting "-" when tagging your name :) Again thank you so much for this script, really useful tool.
I think I see what you mean, I just did not describe it properly when I mentioned to other users that it "adds the separator above the line". The way you created the script is how I plan on using it, but as mentioned I always like to have little tweaks that can change little behaviors in scripts likes this. But the advice I shared for other users about changing the "iL - 1" to "iL - 0" is okay right? This appeared to work in my quick tests of it. Hopefully I did not share incorrect information. I know that what I just mentioned above is different than the 1 & 0 information you just shared, but that is good to know that the GeanyLua plugin handles the line numbers differently, because that could be confusing.
Thank You again
P.S. I do not have many ideas for how Lua scripts (GeanyLua plugin) can be used in the context of Geany, trying to think of some. I just posted a minor one in the Geany Discussions section (do not want to link it, but it is 4070) if interested.