Don't require plugin key group name and label strings to be static
commit9ba7f67238dad49e36e5754df9784f47f2c4881e
authorColomban Wendling <ban@herbesfolles.org>
Thu, 7 Jul 2016 15:53:43 +0000 (7 17:53 +0200)
committerColomban Wendling <ban@herbesfolles.org>
Fri, 8 Jul 2016 22:23:01 +0000 (9 00:23 +0200)
tree20b64601041cdbf803deef003adc7cec9c5b2e29
parent91b63049852964fe4d9a32c5245f74c0f6c104bf
Don't require plugin key group name and label strings to be static

Take a copy of the strings not to require them to live live as long as
the plugin does.

This is mostly useful for plugins implemented in dynamic languages
(e.g. through a plugin proxy), as most C plugins will use a static
string here; but it makes the API more straightforward and avoids odd
issues if any plugin doesn't use static strings here, even C ones.

Closes #1125.
src/keybindings.c