I remember vaguely that, when I was writing this plugin, the first versions didn't use $kak_quoted_$@, but $@ instead, as in your patch. But I can't remember now why I changed that. I guess it has something to do with quoting the Lua code. As I've explained in #9, all the arguments passed to the :lua command are forwarded to the luar.lua script as command line arguments. By all the arguments, I mean even the Lua code within %{}. I think I was concerned that we could experiment some problems if I didn't use the quoted variant.
Do you think it's unnecessary?
And also you named it a fix. Does it break something on your side? If so, could you give me some example for me to understand theses nuances better?
By the way, quoting the luar path is really important.
Hi again!
I remember vaguely that, when I was writing this plugin, the first versions didn't use
$kak_quoted_$@
, but$@
instead, as in your patch. But I can't remember now why I changed that. I guess it has something to do with quoting the Lua code. As I've explained in #9, all the arguments passed to the:lua
command are forwarded to theluar.lua
script as command line arguments. By all the arguments, I mean even the Lua code within%{}
. I think I was concerned that we could experiment some problems if I didn't use the quoted variant.Do you think it's unnecessary?
And also you named it a fix. Does it break something on your side? If so, could you give me some example for me to understand theses nuances better?
By the way, quoting the
luar
path is really important.