minor code cleanup
This commit is contained in:
parent
737837216b
commit
219f4c9c19
|
@ -57,8 +57,10 @@ String runtime_directory()
|
||||||
|
|
||||||
void register_env_vars()
|
void register_env_vars()
|
||||||
{
|
{
|
||||||
struct EnvVarDesc { const char* name; String (*func)(const String&, const Context&); };
|
static const struct {
|
||||||
static const EnvVarDesc env_vars[] = { {
|
const char* name;
|
||||||
|
String (*func)(const String&, const Context&);
|
||||||
|
} env_vars[] = { {
|
||||||
"bufname",
|
"bufname",
|
||||||
[](const String& name, const Context& context)
|
[](const String& name, const Context& context)
|
||||||
{ return context.buffer().display_name(); }
|
{ return context.buffer().display_name(); }
|
||||||
|
|
Loading…
Reference in New Issue
Block a user