Fix params passed to internal funcs

This is for #10074 -- see discussion there.
This won't work when there's no active editor, or will it?