steve donovan, 03.08.2007 08:10:
Hi Frank,

You are passing a table to editor:ReplaceSel(); I did a little test:

editor:ReplaceSel ({'one','two'})

and the selection disappears. So you would have to make your table
into a string using table.concat(buf,'\n').
ok, i'll try it

BTW, removing stuff using your method should work:

for i = 1,#t do
        if t[i] == '' then
                table.remove(t,i)
        end
end

you make a forward-loop, this is no good idea when removing items from a list (skipping next entry after deletion,maybe accessing item out of list-bounds at the end). the loop should go backwards. and there i get this strange behaviour.
is #t the same as table.getn(t)?

regards Frank
_______________________________________________
Scite-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scite-interest

Reply via email to